Garry's Mod Wiki

Tool:Allowed

  boolean Tool:Allowed()

Description

Returns whether the tool is allowed to be used or not. This function ignores the SANDBOX:CanTool hook.

By default this will always return true clientside and uses TOOL.AllowedCVarwhich is a ConVar object pointing to toolmode_allow_*toolname* convar on the server.

Returns

1 boolean
Returns true if the tool is allowed.