RedM Natives

INT_TO_PARTICIPANTINDEX

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Hash0x58FF971FC8F2702C
Runtime nameIntToParticipantindex
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9EC6603812C24710

Signature

int INT_TO_PARTICIPANTINDEX(int value);

Parameters

NameTypeDescription
valueint—

Returns int

Description

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Usage

Lua
local retval = IntToParticipantindex(value)

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

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

Sources

alloc8or RDR3 NativeDB

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