NetworkClient

getMaxNumNetworkPeds

GET_MAX_NUM_NETWORK_PEDS0x0C1F7D49C39D2289

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

SignatureJavaScript
getMaxNumNetworkPeds(): number
SignatureLua
getMaxNumNetworkPeds(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int GET_MAX_NUM_NETWORK_PEDS()
Hash
0x0C1F7D49C39D2289

Open in the interactive natives reference