Garry's Mod Wiki

Garry's Mod Wiki

  CUserCmd Player:GetCurrentCommand()

Description

Returns the last command which was sent by the specified player. This can only be called on the player which GetPredictionPlayer() returns.

When called clientside in singleplayer during WEAPON:Think, it will return nothing as the hook is not technically predicted in that instance. See the note on the page.
This will fail in GM:StartCommand.

Issue Tracker: 3302

Returns

1 CUserCmd
Last user commands

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...