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: 57ms

DB GetPage 40
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 6