Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 63ms

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