From Garry's Mod
Controls if a property can be used or not.
|NOTE||This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.|
Player, that tried to use the property
Class of the property that is tried to use, for example - bonemanipulate
The entity, on which property is tried to be used on
Return false to disallow using that property
Stops non-admins from using the remover property.
hook.Add( "CanProperty", "block_remover_property", function( ply, property, ent ) if ( !ply:IsAdmin() && property == "remover" ) then return false end end )