How to force the client to download a whole folder and ll folders and files inside?
3 replies, posted
Hello,
I would like to know how to do that.
I already went there : [url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url] But I didn't understand at all.
Could someone post here the code that I must put in the LUA with examples? I don't understand at all when there are /../ etc...
Thanks in advance.
PS : If you're using 7-Zip, could you tell me how to compress every file in a folder at once? Because I have to right click each file and then compress it. And if I select them all, it creates a big archive.
Edit : Who rated me a heart without answer? :/
[code]for k , v in pairs(file.Find("../sound/mysounds/*.*")) do
resource.AddFile("sound/mysounds/"..v)
end[/code]
../ goes up one folder from the current folder - which is data.
-snip- Nevermind
Thanks.
Sorry, you need to Log In to post a reply to this thread.