Garry's Mod Wiki


number player.GetCount()


Gives you the player count.

Similar to #player.GetAll() but with better performance since the player table doesn't have to be generated. If player.GetAll is already being called for iteration, then using the # operator on the table will be faster than calling this function since it is JITted.


1 number
Number of players

Page Links

Special Pages



Render Time: 63ms

DB GetPage 32
Generate Html 2
SaveChanges (1) 19
Render Body 0
Render Sidebar 6