RedM Natives

GET_MAX_NUM_NETWORK_OBJECTS

Always returns 60

Hash0xC7BE335216B5EC7C
Runtime nameGetMaxNumNetworkObjects
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC7BE335216B5EC7C

Signature

int GET_MAX_NUM_NETWORK_OBJECTS();

Returns int

Description

Always returns 60

Usage

Lua
local retval = GetMaxNumNetworkObjects()

-- always works, by hash
local retval = Citizen.InvokeNative(0xC7BE335216B5EC7C, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetMaxNumNetworkObjects();

// by hash
const retval = Citizen.invokeNative('0xC7BE335216B5EC7C', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xC7BE335216B5EC7C);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.