• Vehicles doesnt shows up in the spawn menu!
    1 replies, posted
Hello i have added vehicles to my server [url=http://www.garrysmod.org/downloads/?a=view&id=44768][img]http://www.garrysmod.org/img/?t=dll&id=44768[/img][/url] this is my resource.add file [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 AddDir("materials/corvette") AddDir("materials/golf") AddDir("models/corvette") AddDir("models/golf") resource.AddFile( "scripts/vehicles/corvette.txt" ) resource.AddFile( "scripts/vehicles/golf.txt" ) [/CODE] but it wont appear in the spawn menu :( i have searched in ages to fix it please can some1 tell me how to fix it
[url]http://www.facepunch.com/showthread.php?t=121135[/url] Says it clearly. Especially this one: "If you are having trouble with somebody else's script, get in contact with them, or post in their thread."
Sorry, you need to Log In to post a reply to this thread.