Called when a player attempts to fire their tool gun. Return true to specifically allow the attempt, false to block it.
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
Stops players from removing doors.
function GM:CanTool( ply, tr, tool ) if tool == "remover" and IsValid( tr.Entity ) and tr.Entity:GetClass() == "prop_door_rotating" then return false end end