GetMaxPlayers

From Onset Developer Wiki
Revision as of 17:05, 17 November 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetMaxPlayers

Type: Function
Context: Server
Introduced: v1.0

Description

Gets the player slots count

Syntax

GetMaxPlayers()

Parameters

  • This function has no parameters.

Return Value

  • Returns the player slots count.

Example

AddCommand("players", function(playerid)
	AddPlayerChat(playerid, "Max Players: "..GetMaxPlayers())
end)

See also