The Lab
PERSCHAR native

_GET_PERSCHAR_PED_INDEX

returns Ped1 parambuild 1207

Returns the ped handle currently spawned for the persistent character persChar.

Signature

C
Ped _GET_PERSCHAR_PED_INDEX(PersChar persChar); // 0x31C70A716CAE1FEE b1207

Parameters

#NameType
1persCharPersChar

Facts

Facts about _GET_PERSCHAR_PED_INDEX
Name
_GET_PERSCHAR_PED_INDEX
Hash
0x31C70A716CAE1FEE
Namespace
Returns
Ped
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

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

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