Garry's Mod Wiki


number CUserCmd:TickCount()


Returns tick count since joining the server.

This will always return 0 for bots.
Returns 0 clientside during prediction calls. If you are trying to use CUserCmd:Set*() on the client in a movement or command hook, keep doing so till TickCount returns a non-zero number to maintain prediction.


1 number
The amount of ticks passed since joining the server.

Page Links

Special Pages



Render Time: 72ms

DB GetPage 48
Generate Html 1
SaveChanges (1) 14
Render Body 0
Render Sidebar 6