• SWEPS force download
    3 replies, posted
Hey! I want to use a swep pack on my server that i would like clients to see and be able to use upon joining my server even if they haven't already downloaded the swep in question beforehand. I know that this is possible with player models and maps etc as i have recently learnt how to setup resource.addfile LUA functions serverside. To summarize then: Do i have to write the usual 'resouce.addfile...' code for each individual model and texture within a SWEP pack such as the popular 'kermite shotgun pack' found here: [url]http://www.garrysmod.org/downloads/?a=view&id=74634[/url] in order for clients to see the weapons in use on the server without downloading them from the internet beforehand? reward = bumcex Kyle
[QUOTE=thejjokerr;21698931]Yes. You need to send every model and texture one by one. You can also loop resource.AddFile through complete folders using the function on it's wiki page. [b]EDIT: No thanks, I do not want your reward ;P[/b][/QUOTE] ...oh *pulls up pants* :P thanks for your quick reply. I assume your talking about the addDir function yes?
Sorry, you need to Log In to post a reply to this thread.