NetworkClient

getMaxNumNetworkVehicles

GET_MAX_NUM_NETWORK_VEHICLES0x0AFCE529F69B21FF

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

SignatureJavaScript
getMaxNumNetworkVehicles(): number
SignatureLua
getMaxNumNetworkVehicles(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int GET_MAX_NUM_NETWORK_VEHICLES()
Hash
0x0AFCE529F69B21FF

Open in the interactive natives reference