• Script error ?
    2 replies, posted
Hello. I was trying to disallow users ( From user to moderator ) to pickup TDM cars with physgun. [CODE] hook.Add( "PhysgunPickup", "No Car Pickup", function( ply, ent ) if (not ply:IsAdmin() && _ent:IsVehicle( ) && string.find( ent:GetClass():lower(), "prop_vehicle" ) ) then return false end end)[/CODE] Actually, Admin+ can physgun it, but Mod- cant physgun CARS and ANY PROP still. What should i change here ? Im really idiot in LUA topic, thats why im posting here. Please help me !
-Snip, sorry misread the question/problem-
Change _ent:IsVehicle( ) to ent:IsVehicle( )
Sorry, you need to Log In to post a reply to this thread.