resource.AddSingleFile
From GMod Wiki
| Function | |
| Syntax |
resource.AddSingleFile( String filename ) Where is this used? |
| Description: | |
| Adds a single file to the download list for clients. | |
| Returns: | nil |
| Part of Library: | resource |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Resource.AddSingleFile]Resource.AddSingleFile [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Send the counter strike font to all the clients that decide to play on the server. |
|---|---|
| Used on | |
| Code | resource.AddSingleFile( "resource/fonts/csd.ttf" ) |
| Output | N/A |
Additional Notes
- garrysmod/ is the root folder.
- The capitalization of the path must match the actual path.
- This will NOT send files that are in a gamemode's content folder. You must copy them into the root folder for this to work.
- This function does not automatically add related files like resource.AddFile does. This is useful if you do not have all the files it wants to add.