GetPlayerCount: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
AddCommand("players", function(playerid)
end)


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[GetMaxPlayers]]

Revision as of 16:59, 17 November 2019

GetPlayerCount

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets the count of the online players.

Syntax

GetPlayerCount()

Parameters

  • This function has no parameters.

Return Value

  • Count of players.

Example

AddCommand("players", function(playerid) end)

See also