Garry's Mod Wiki

TOOL:Deploy

  boolean TOOL:Deploy()
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Description

Called when WEAPON:Deploy of the toolgun is called.

This is also called when switching from another tool on the server.

Returns

1 boolean
Return true to allow switching away from the toolgun using lastinv command