📶Network

Download

MTools.Network.Download(link, path, check, bytes);

NameTypeDescription

link

string

URL

path

string

Path to directory

check

boolean

Checking for uniqueness

bytes

number / boolean

Double check, specify true to know the right value.

Allows you to save any type of file downloaded from a direct link to a directory. The Original Way: Counter-Strike Global Offensive Example usage:

MTools.Network.Download(
    "https://fontsforyou.com/downloads/99851-smallestpixel7", 
    "nl\\MTools\\pixel.ttf", 
    true,
    97
);
-- Downloads the font and puts it in the directory.
-- And also checked if there is no file with this name in the directory.

Last updated