RedM Natives

NETWORK_GET_PARTICIPANT_INDEX

Hash0x1B84DF6AF2A46938
Runtime nameNetworkGetParticipantIndex
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1B84DF6AF2A46938

Signature

int NETWORK_GET_PARTICIPANT_INDEX(int index);

Parameters

NameTypeDescription
indexint—

Returns int

Usage

Lua
local retval = NetworkGetParticipantIndex(index)

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

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

Sources

alloc8or RDR3 NativeDB

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