RedM Natives

_GET_PERSCHAR_INDEX_FROM_PED_INDEX

Hash0x32A1E3B83D501096
Runtime nameGetPerscharIndexFromPedIndex
NamespacePERSCHAR
SideClient
NameCommunity guess
Docs
Since build1207

Signature

PersChar _GET_PERSCHAR_INDEX_FROM_PED_INDEX(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns PersChar

Usage

Lua
local retval = GetPerscharIndexFromPedIndex(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x32A1E3B83D501096, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPerscharIndexFromPedIndex(ped);

// by hash
const retval = Citizen.invokeNative('0x32A1E3B83D501096', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x32A1E3B83D501096, ped);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.