Garry's Mod Wiki

Player:GetTool

  table Player:GetTool( string mode = nil )

Description

Returns TOOL table of players current tool, or of the one specified.

Arguments

1 string mode = nil
Classname of the tool to retrieve. ( Filename of the tool in gmod_tool/stools/ )

Returns

1 table
TOOL table, or nil if the table wasn't found or the player doesn't have a tool gun.