GetMaxPlayers

From Onset Developer Wiki
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