The Lab
PLAYER native

PLAYER_PED_ID

returns Ped0 paramsbuild 1207

Returns the ped handle of the local player.

Call it each time you need it rather than caching it, since the ped can change after respawn or model swap.

Signature

C
Ped PLAYER_PED_ID(); // 0x096275889B8E0EE0 b1207

Parameters

This native takes no parameters.

Facts

Facts about PLAYER_PED_ID
Name
PLAYER_PED_ID
Hash
0x096275889B8E0EE0
Namespace
Returns
Ped
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local ped = Citizen.InvokeNative(0x096275889B8E0EE0, -- PLAYER_PED_ID
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x096275889B8E0EE0", // PLAYER_PED_ID
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x096275889B8E0EE0); // PLAYER_PED_ID
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.