Garry's Mod Wiki

Player:GetCurrentCommand

Description

Returns the last command which was sent by the specified player. Can only be used in a .

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.

Returns

1 CUserCmd
Last user commands

Page Links


Special Pages


Wikis

?

Render Time: 26ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 7
Render Body 0
Render Sidebar 12