The Lab
PED native

_GET_PED_REGISTER_PROP

returns Entity3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to return the prop propName registered on ped, optionally detaching it.

Signature

C
Entity _GET_PED_REGISTER_PROP(Ped ped, const char* propName, BOOL detachProp); // 0x4D0D2E3D8BC000EB b1207

Parameters

#NameType
1pedPed
2propNameconst char*
3detachPropBOOL

Facts

Facts about _GET_PED_REGISTER_PROP
Name
_GET_PED_REGISTER_PROP
Hash
0x4D0D2E3D8BC000EB
Namespace
Returns
Entity
Game build
1207

Examples

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

Lua
local entity = Citizen.InvokeNative(0x4D0D2E3D8BC000EB, -- _GET_PED_REGISTER_PROP
  PlayerPedId(), -- Ped ped
  "text", -- const char* propName
  false, -- BOOL detachProp
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x4D0D2E3D8BC000EB", // _GET_PED_REGISTER_PROP
  PlayerPedId(), // Ped ped
  "text", // const char* propName
  false, // BOOL detachProp
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x4D0D2E3D8BC000EB, // _GET_PED_REGISTER_PROP
  API.PlayerPedId(), // Ped ped
  "text", // const char* propName
  false // BOOL detachProp
);
All PED natives

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