GET_PLAYER_PED_SCRIPT_INDEX
Does the same like PLAYER::GET_PLAYER_PED
Hash
0x5C880F9056D784C8Runtime name
GetPlayerPedScriptIndexNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x50FAC3A3E030A6E1Signature
Ped GET_PLAYER_PED_SCRIPT_INDEX(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns Ped
Description
Does the same like PLAYER::GET_PLAYER_PED
Usage
local retval = GetPlayerPedScriptIndex(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5C880F9056D784C8, player, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerPedScriptIndex(player);
// by hash
const retval = Citizen.invokeNative('0x5C880F9056D784C8', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x5C880F9056D784C8, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.