Garry's Mod Wiki

Revision Difference

Player:GetTool#512750

<function name="GetTool" parent="Player" type="classfunc">⤶ <description>Returns TOOL table of players current tool, or of the one specified.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="mode" type="string" default="nil">Classname of the tool to retrieve. ( Filename of the tool in gmod_tool/stools/ )</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">TOOL table, or nil if the table wasn't found or the player doesn't have a tool gun.</ret>⤶ </rets>⤶ </function>⤶ ⤶