> For the complete documentation index, see [llms.txt](https://monytools.gitbook.io/type/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monytools.gitbook.io/type/network.md).

# Network

### Download

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

<table><thead><tr><th width="225">Name</th><th width="265">Type</th><th>Description</th></tr></thead><tbody><tr><td>link</td><td><strong><code>string</code></strong></td><td>URL</td></tr><tr><td>path</td><td><strong><code>string</code></strong></td><td>Path to directory</td></tr><tr><td>check</td><td><strong><code>boolean</code></strong></td><td>Checking for uniqueness</td></tr><tr><td>bytes</td><td><strong><code>number / boolean</code></strong></td><td>Double check, specify <strong>true</strong> to know the right value.</td></tr></tbody></table>

**Allows you to save any type of file downloaded from a direct link to a directory.**\ <mark style="color:blue;">**The Original Way:**</mark><mark style="color:blue;">**&#x20;**</mark><mark style="color:blue;"><mark style="color:orange;">**Counter-Strike Global Offensive**<mark style="color:orange;"></mark>\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
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.
```
