RedM Natives

GET_PLAYER_PED

Hash0x275F255ED201B937
Runtime nameGetPlayerPed
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x43A66C31C68491C0

Signature

Ped GET_PLAYER_PED(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns Ped

Usage

Lua
local retval = GetPlayerPed(player)

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

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

Sources

alloc8or RDR3 NativeDB

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