GET_PLAYER_PED_SCRIPT_INDEX
Returns the script ped handle of player.
Signature
Ped GET_PLAYER_PED_SCRIPT_INDEX(Player player); // 0x5C880F9056D784C8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | GET_PLAYER_PED_SCRIPT_INDEX |
|---|---|
| Hash | 0x5C880F9056D784C8 |
| 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(0x5C880F9056D784C8, -- GET_PLAYER_PED_SCRIPT_INDEX
PlayerId(), -- Player player
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0x5C880F9056D784C8", // GET_PLAYER_PED_SCRIPT_INDEX
PlayerId(), // Player player
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0x5C880F9056D784C8, // GET_PLAYER_PED_SCRIPT_INDEX
API.PlayerId() // Player player
);Related PLAYER natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.