The Lab
PERSCHAR native

_GET_PERSCHAR_INDEX_FROM_PED_INDEX

returns PersChar1 parambuild 1207

Returns the persistent character handle associated with ped, if any.

Signature

C
PersChar _GET_PERSCHAR_INDEX_FROM_PED_INDEX(Ped ped); // 0x32A1E3B83D501096 b1207

Parameters

#NameType
1pedPed

Facts

Facts about _GET_PERSCHAR_INDEX_FROM_PED_INDEX
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.

Lua
local persChar = Citizen.InvokeNative(0x32A1E3B83D501096, -- _GET_PERSCHAR_INDEX_FROM_PED_INDEX
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(persChar)
JavaScript
const persChar = Citizen.invokeNative("0x32A1E3B83D501096", // _GET_PERSCHAR_INDEX_FROM_PED_INDEX
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(persChar)
C#
int persChar = Function.Call<int>((Hash)0x32A1E3B83D501096, // _GET_PERSCHAR_INDEX_FROM_PED_INDEX
  API.PlayerPedId() // Ped ped
);
All PERSCHAR natives

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