• Resource Addfile
    3 replies, posted
Could someone possibly make an example resource file or one I could use to make the client download the content's folders I add and a readme explaining to me how it works? Thanks in advance!
Make a .lua file in your autorun, it should look something like this [lua]resource.AddFile("models/Characters/cop.dx80.vtx") resource.AddFile("models/Characters/cop.dx90.vtx") resource.AddFile("models/Characters/cop.mdl") resource.AddFile("models/Characters/cop.phy") resource.AddFile("models/Characters/cop.sw.vtx") resource.AddFile("models/Characters/cop.vvd") resource.AddFile("materials/models/cop/aviators.vmt") resource.AddFile("materials/models/cop/aviators.vtf") resource.AddFile("materials/models/cop/aviators-env.vtf") resource.AddFile("materials/models/cop/bucklebadgetrga.vmt") resource.AddFile("materials/models/cop/bucklebadgetrga.vtf") resource.AddFile("materials/models/cop/bucklebadgetrga-n.vtf") resource.AddFile("materials/models/cop/copbelt.vmt")[/lua]
[QUOTE=wanksta11;19871905]Make a .lua file in your autorun, it should look something like this [lua]resource.AddFile("models/Characters/cop.dx80.vtx") resource.AddFile("models/Characters/cop.dx90.vtx") resource.AddFile("models/Characters/cop.mdl") resource.AddFile("models/Characters/cop.phy") resource.AddFile("models/Characters/cop.sw.vtx") resource.AddFile("models/Characters/cop.vvd") resource.AddFile("materials/models/cop/aviators.vmt") resource.AddFile("materials/models/cop/aviators.vtf") resource.AddFile("materials/models/cop/aviators-env.vtf") resource.AddFile("materials/models/cop/bucklebadgetrga.vmt") resource.AddFile("materials/models/cop/bucklebadgetrga.vtf") resource.AddFile("materials/models/cop/bucklebadgetrga-n.vtf") resource.AddFile("materials/models/cop/copbelt.vmt")[/lua][/QUOTE] <3 lol ... What do I do if each time the client connects they have to redownload the file? Or is there anything I can do?
The client won't redownload if they have already downloaded it. EDIT: if you cant figure it out just use this addon [url]http://www.facepunch.com/showthread.php?t=883823[/url]
Sorry, you need to Log In to post a reply to this thread.