Garry's Mod Wiki

SANDBOX:PreRegisterTOOL

  boolean SANDBOX:PreRegisterTOOL( table tool, string class )

Description

Called just before registering a Sandbox scripted tool.

Arguments

1 table tool
The TOOL table to be registered. See TOOL structure.
2 string class
The class name to be assigned.

Returns

1 boolean
Return false to prevent the TOOL from being registered.