RedM Natives

PARTICIPANT_ID

Return the local Participant ID

Hash0x90986E8876CE0A83
Runtime nameParticipantId
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x90986E8876CE0A83

Signature

Player PARTICIPANT_ID();

Returns Player

Description

Return the local Participant ID

Usage

Lua
local retval = ParticipantId()

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

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

Sources

alloc8or RDR3 NativeDB

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