• Set a download directory?
    2 replies, posted
How do I make it so that once a person joins my server, they automatically download a whole directory, such as a whole addon. I am too lazy to add all of my addons file's one by one (there's over 1350 files in the car pack addon I want them to autodownload). So is there a way?
[lua] for _, filename in pairs(file.Find("../folder/*.*")) do resource.AddFile("folder/"..filename) end [/lua]
[QUOTE=_nonSENSE;23881750][lua] for _, filename in pairs(file.Find("../folder/*.*")) do resource.AddFile("folder/"..filename) end [/lua][/QUOTE] So basically, if I were to do that, I would make a something.lua (can be named anything) file and put it in lua/autorun/server and then make it look like this? [code] for _, filename in pairs(file.Find("../phx3/*.*")) do resource.AddFile("phx3/"..filename) end [/code] (No I am not actually making them download phx3).
Sorry, you need to Log In to post a reply to this thread.