Garry's Mod Wiki

player.GetCountConnecting

  number player.GetCountConnecting()

Recently Added

This was recently added in version (2025.06.04). It might only be available on the Dev Branch right now.

Description

Returns the amount of players connecting to the server, but not yet spawned in.

player.GetCountConnecting() + player.GetCount() would result in the total player count on this server.

Returns

1 number
Number of players still connecting.