SANDBOX:CanTool
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
Description
Called when a player attempts to fire their tool gun. Return true to specifically allow the attempt, false to block it.
Arguments
5 number button
The tool button pressed.
1- left click2- right click3- reload4- spawn menu (No interaction with the toolgun). Client-side only
Garry's Mod
Rust
Steamworks
Wiki Help