Question about adding things to server

I have a rented server. Lets say i want to add a single gun.

dO i have to add the lua files in the resource.lua file ?

also sound and materials and models im guessins go in the resource.lua?

and i came accross this: its the code for adding entire dirrectories

can some one help me and format it to add my entire adddons folder? thanks


function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/yourmodels”)

Addons are supposed to have their own file sharing code. There’s no need for something like a ‘resource.lua’. When an addon doesn’t share its files like PHX 3, it’s because that isn’t a good idea.

ok well what about maps? the other people cant download the maps i have on the server. and i kno ther supposed to be multiplayer. how do i force download those?

Can’t you just use fastdl for the maps?

You have to set your max net filesize. “net_maxfilesize”