Garry's Mod Wiki

Revision Difference

Player:GetCurrentCommand#512621

<function name="GetCurrentCommand" parent="Player" type="classfunc">⤶ <description>⤶ Returns the last command which was sent by the specified player. Can only be used in a .⤶ ⤶ <note>When called clientside in singleplayer during <page>WEAPON:Think</page>, it will return nothing as the hook is not technically predicted in that instance. See the note on the page.</note>⤶ ⤶ <bug issue="3302">This will fail in <page>GM:StartCommand</page>.</bug>⤶ </description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="CUserCmd">Last user commands</ret>⤶ </rets>⤶ </function>⤶ ⤶