The Lab
PLAYER native

GET_PLAYER_PED

returns Ped1 parambuild 1207

Returns the ped controlled by player.

Use PLAYER_PED_ID for the local player.

Signature

C
Ped GET_PLAYER_PED(Player player); // 0x275F255ED201B937 b1207

Parameters

#NameType
1playerPlayer

Facts

Facts about GET_PLAYER_PED
Name
GET_PLAYER_PED
Hash
0x275F255ED201B937
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(0x275F255ED201B937, -- GET_PLAYER_PED
  PlayerId(), -- Player player
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x275F255ED201B937", // GET_PLAYER_PED
  PlayerId(), // Player player
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x275F255ED201B937, // GET_PLAYER_PED
  API.PlayerId() // Player player
);
All PLAYER natives

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