Revision Difference
resource.AddSingleFile#526900
<function name="AddSingleFile" parent="resource" type="libraryfunc">
<description>
Adds the specified file to the files the client should download.
<warning>There's a 8192 downloadable file limit. </warning>⤶
⤶
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. </warning>⤶
<note>If you need more than 8192, 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.</note>
⤶
<note>The file must exist on the server or players will not download it!</note>⤶
</description>
<realm>Server</realm>
<args>
<arg name="path" type="string">Path of the file to be added, relative to garrysmod/</arg>
</args>
</function>