Help adding things to servers

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

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

also sound and materials and models im guessing go in the resource.lua as well?

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 so i dont have to make it add each individual damn model/texture file? 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

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



yes i understand that. im not that newbish. i uploaded all those things. my question is how to get the other clients to download the adddons and maps :stuck_out_tongue:

as long as sv_download is set to 1 it should be okey dokey