How to force the client to download a whole folder and ll folders and files inside?

Hello,

I would like to know how to do that.

I already went there : http://wiki.garrysmod.com/?title=Resource.AddFile 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? :confused:


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

…/ goes up one folder from the current folder - which is data.

-snip- Nevermind

Thanks.