PLAYER_PED_ID
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
Ped PLAYER_PED_ID(); // 0x096275889B8E0EE0 b1207Parameters
This native takes no parameters.
Facts
| 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.
local ped = Citizen.InvokeNative(0x096275889B8E0EE0, -- PLAYER_PED_ID
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0x096275889B8E0EE0", // PLAYER_PED_ID
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0x096275889B8E0EE0); // PLAYER_PED_IDRelated PLAYER natives
- PLAYER_ID
- _CLEAR_PED_EAGLE_EYE_TRAILS_FOR_PLAYER
- _EAGLE_EYE_GET_TRACKED_PED_ID
- _GET_PLAYER_PED_2
- _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
- _HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED
- _MODIFY_PLAYER_UI_PROMPT_FOR_PED
- _NETWORK_HAS_PLAYER_VALID_PED
- _SET_PED_ACTIVE_PLAYER_HORSE
- _SET_PED_AS_SADDLE_HORSE_FOR_PLAYER
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_NON_ANIMAL_PED
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.