05-11-2011, 10:43 AM
(This post was last modified: 05-11-2011, 10:47 AM by The Bertolet.)
(05-08-2011, 10:52 PM)SL1 CHAOS Wrote: I have been told to make a resource file to tell my fastdownload url what to send to the clients, firstly where do I put it and whats it called.
Secondly I have thousands of files so can I just put
Code:
resource.AddFile ("materials");
Instead of writing out every single file
You do understand "Server Side", don't you? put the lua file in garrysmod/lua/autorun/server and make sure the files are in your Downloadurl. also, most addons already come with these... but anyway, you can do this with the "AddDir" command: (see the attachment)
Also, be specific with the folders... never add any "general" folders, like materials, models, or sounds. doing so breaks the clientside gmod.