Player.GetTool

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetTool( )
Description:
Gets the current equipped STOOL and returns it's table.
Returns: Table
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetTool]Player.GetTool [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the STOOL object table.
Used onNewerServer.png
Code
 
PrintTable(Player:GetTool())
 
Output
 
AllowedCVar	=	ConVar: 041C4138
ServerConVar:
Category	=	Construction
Stage	=	0
Owner	=	[NULL Entity]
RightClick	=	function: 03B963D0
Message	=	start
Objects:
SWEP	=	Weapon [101]
Name	=	#Ignite
ClientConVar:
		length	=	15
LeftClick	=	function: 03B963B8
Mode	=	ignite
LastMessage	=	0
Weapon	=	Weapon [101]
 


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox