Dedicated Server Downloads(for windows)
If you wish to make players download non standard files from your server (i.e addons that they should have) you can do this with a very simple Lua script.
in your server go to the folder "garrysmod/lua/autorun/server" in here create a lua file (can be done by saving a file with notepad with suffix ".lua" instead of ".txt") called resources.lua .
Here is an example of what you can put in there:
{
resource.AddFile( "sound/sound.wav" )
resource.AddFile( "sound/music/song.wav")
AddCSLuaFile("effects/explosion/init.lua")
AddCSLuaFile("entities/ball/cl_init.lua")
AddCSLuaFile("entities/ball/shared.lua")
}
resource.AddFile tells it to download the file located in the brackets (speech marks around path and file name).
It defaults to the garrysmod directory so as you can see i have put sound on for those files, you can use materials or so. If the files are in the addons folder you can simply use what comes after "addons/[mod]/" in explorer as gmod redirects it.
If the file is a lua you use
AddCSLuaFile
This defaults to the lua directory. again if the file is in addons simply only use what comes after "addons/[mod]/lua/" in explorer