Adds the specified and all related files to the files the client should download.
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
.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.
garrysmod/folder will not work for files in addons and gamemodes. Instead, the files must be added relative to their respective content folders. For example, a sound file from an addon would use the path "sound/[FILENAME_AND_EXTENSION]," despite the file being located in "addons/[ADDON_NAME]/sound/[FILENAME_AND_EXTENSION]"
garrysmod/. Do not add
.bz2to the filepath. Do not put
addons/<*addonname*/into the path.