Garry's Mod Wiki

player.GetCount

player.GetCount

  number player.GetCount()

Description

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.

Returns

1 number
Number of players

Special Pages


Wikis

?

Render Time: 77ms

DB GetPage 47
Generate Html 3
SaveChanges (1) 17
Render Body 0
Render Sidebar 7