Okay so i want people who join to download some custom models
I created a lua file inside lua/autorun/server with this
[code]function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // don't spam people with useless .svn folders
AddDir(fdir)
end
end
for k,v in pairs(file.Find("../"..dir.."/*")) do
resource.AddFile(dir.."/"..v)
end
end
//This will force the joining players to download everything in the addons folder of the server.
//replace addons with other folders or copy the code and insert the paths in the copiesi.
AddDir("models/nater")
[/code]
But when they join the files they downloaded are still errors, and when they leave and join back they have to download again. Im using xenon servers fast dl
Any help appreciated
cheers
Make sure the files are in /models and not /addons/ADDON/models
[QUOTE=techtuts0;31291299]Make sure the files are in /models and not /addons/ADDON/models[/QUOTE]
So for drugs mod take the models and materials folder out of the addons folder and put them into gmod/gmod/ models or materials?
[editline]23rd July 2011[/editline]
k thanks ill give it a go
Same problem here. I Hope this works. Sorry if this was bumped.
can someone help me on team veiwer with this
Sorry, you need to Log In to post a reply to this thread.