RedM Natives

PARTICIPANT_ID_TO_INT

Return the local Participant ID.

Hash0x57A3BDDAD8E5AA0A
Runtime nameParticipantIdToInt
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x57A3BDDAD8E5AA0A

Signature

int PARTICIPANT_ID_TO_INT();

Returns int

Description

Return the local Participant ID.

This native is exactly the same as 'PARTICIPANT_ID' native.

Usage

Lua
local retval = ParticipantIdToInt()

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

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

Sources

alloc8or RDR3 NativeDB

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