_GET_PERSCHAR_INDEX_FROM_PED_INDEX
Returns the persistent character handle associated with ped, if any.
Signature
PersChar _GET_PERSCHAR_INDEX_FROM_PED_INDEX(Ped ped); // 0x32A1E3B83D501096 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _GET_PERSCHAR_INDEX_FROM_PED_INDEX |
|---|---|
| Hash | 0x32A1E3B83D501096 |
| Namespace | |
| Returns | PersChar |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local persChar = Citizen.InvokeNative(0x32A1E3B83D501096, -- _GET_PERSCHAR_INDEX_FROM_PED_INDEX
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(persChar)const persChar = Citizen.invokeNative("0x32A1E3B83D501096", // _GET_PERSCHAR_INDEX_FROM_PED_INDEX
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(persChar)int persChar = Function.Call<int>((Hash)0x32A1E3B83D501096, // _GET_PERSCHAR_INDEX_FROM_PED_INDEX
API.PlayerPedId() // Ped ped
);Related PERSCHAR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.