Garry's Mod Wiki

Revision Difference

resource.AddSingleFile#565203

<function name="AddSingleFile" parent="resource" type="libraryfunc"> <description> Adds the specified file to the files the client should download from the server. If you wish to add textures or models, consider using <page>resource.AddFile</page> to add all the files required for a texture/model. <warning>There's a 8192 downloadable file limit. If you need more, consider using Workshop addons - <page>resource.AddWorkshop</page>. You should also consider the fact that you have way too many downloads. This limit is shared among all `resource.Add*` functions.</warning> <note>The file must exist on the server or players will not download it!</note> ⤶ See also <page>Serving Content</page>⤶ </description> <realm>Server</realm> <args> <arg name="path" type="string">Path of the file to be added, relative to garrysmod/</arg> </args> </function>