Title already says it. I have a server hosted on a linux and I am trying to get something that will restrict everyone from spawning it. Yes even me, Because I mis-click a little too much. Also, Where would I put the said script then? I'm really a major idiot when it comes to this. You know, First time having a server and all.
Thanks for viewing.
[lua]
local vehicleBlacklist = { "Jeep" }
local function PreventVehicle( _, _, strName )
return not table.HasValue( vehicleBlacklist, strName )
end
hook.Add( "PlayerSpawnVehicle", "prevent_vehicles", PreventVehicle )
[/lua]
Place in "lua/autorun/server/vehicleblock.lua".
Thanks, Would've tested it if my laptop wasn't being so laggy. My laptop already almost crashed typing this.
Sorry, you need to Log In to post a reply to this thread.