ENTITY:CanTool
Description
Controls if a tool can be used on this entity or not.
This hook will only work in Sandbox derived gamemodes that do not have SANDBOX:CanTool overridden.
This hook will work on ALL entities, not just the scripted ones (SENTs)
Arguments
Returns
Example
Prevents usage of the remover tool on this entity.
function ENT:CanTool( ply, trace, mode, tool, button )
if ( mode == "remover" ) then return false end
return true
end