Garry's Mod Wiki
Description
Adds the specified and all related files to the files the client should download from the server.
For convenience, this function will automatically add any other files that are related to the selected one, and throw an error if it can't find them. For example, a .vmt
file will automatically add the .vtf
with the same name, and a .mdl
file will automatically add all .vvd
, .ani
, .dx80.vtx
, .dx90.vtx
, .sw.vtx
, .phy
, .png
and .jpg
files with the same name, with a separate error for each missing file.
If you do not want it to do this, use resource.AddSingleFile.
resource.Add*
functions.Arguments
garrysmod/
.Do not add
.bz2
to the filepath.Do not put
gamemodes/*gamemodename*/content/
or addons/*addonname*/
into the path.Example
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...