NetworkClient

networkGetMaxNumParticipants

NETWORK_GET_MAX_NUM_PARTICIPANTS0xA6C90FBC38E395EE

The GTA V native NETWORK_GET_MAX_NUM_PARTICIPANTS of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetMaxNumParticipants, in JavaScript and in Lua.

SignatureJavaScript
networkGetMaxNumParticipants(): number
SignatureLua
networkGetMaxNumParticipants(): integer

Usage

JavaScript
const result = networkGetMaxNumParticipants();
Lua
local result = networkGetMaxNumParticipants()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_MAX_NUM_PARTICIPANTS()
Hash
0xA6C90FBC38E395EE
Formerly
_NETWORK_GET_NUM_PARTICIPANTS_HOST

Open in the interactive natives reference