RedM Natives

NETWORK_GET_MAX_NUM_PARTICIPANTS

for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++) if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0) var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));

Hash0xA6C90FBC38E395EE
Runtime nameNetworkGetMaxNumParticipants
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA6C90FBC38E395EE

Signature

int NETWORK_GET_MAX_NUM_PARTICIPANTS();

Returns int

Description

Seems to always return 0, but it's used in quite a few loops.

for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++)
    {
        if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0)
        {
            var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));

Usage

Lua
local retval = NetworkGetMaxNumParticipants()

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

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

Sources

alloc8or RDR3 NativeDB

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