RedM Natives

PLAYER_PED_ID

Returns current player ped

Hash0x096275889B8E0EE0
Runtime namePlayerPedId
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD80958FC74E988A6

Signature

Ped PLAYER_PED_ID();

Returns Ped

Description

Returns current player ped

Usage

Lua
local retval = PlayerPedId()

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

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

Sources

alloc8or RDR3 NativeDB

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