NetworkClient

networkGetNumParticipants

NETWORK_GET_NUM_PARTICIPANTS0x18D0456E86604654

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

SignatureJavaScript
networkGetNumParticipants(): number
SignatureLua
networkGetNumParticipants(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_NUM_PARTICIPANTS()
Hash
0x18D0456E86604654

Open in the interactive natives reference