• Restrict players from picking up a jeep?
    3 replies, posted
Hi, I was wondering how I would restrict players from picking up jeeps, or anything in general? Thanks,
[lua] local blacklist = {"vehicle_jeep"} -- Go adding stuff here hook.Add( "PhysgunPickup", "NoPhys", function( ply, ent ) if table.HasValue(blacklist,ent:GetClass()) then return false end end) [/lua]
Thanks, where would I put this? Im a bit of a noob
garrysmod/lua/autorun/server/blacklist.lua
Sorry, you need to Log In to post a reply to this thread.