- Connect to your server FTP by using the connection info on the "File Manager" tab
- Navigate to garrysmod/lua/autorun/server/
- Create a new "Example.lua" file.
- Then add this code for each custom file "resource.AddSingleFile("file path here")"
- For each workshop addon added via a collection add "resource.AddWorkshop("workshopid")"
Code: Select all
resource.AddSingleFile( "sound/siege/jihad.wav" )
resource.AddSingleFile( "sound/siege/big_explosion.wav" )
resource.AddSingleFile( "materials/vgui/entities/weapon_jihadbomb.vtf" )
resource.AddSingleFile( "materials/vgui/entities/weapon_jihadbomb.vmt" )
resource.AddWorkshop( "157450041" )
resource.AddWorkshop( "158962453" )
We have also created a very handy tool to automatically generate a resource.lua file for you. http://www.configcreator.com/create/gmod/resources.lua
Information sourced from http://maurits.tv/data/garrysmod/wiki/w ... xd2d2.html and http://maurits.tv/data/garrysmod/wiki/w ... x5809.html