RedM Natives

_GET_PED_REGISTER_PROP

Gets a registered/attached prop entity for a particular ped.

Hash0x4D0D2E3D8BC000EB
Runtime nameGetPedRegisterProp
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Entity _GET_PED_REGISTER_PROP(Ped ped, const char* propName, BOOL detachProp);

Parameters

NameTypeDescription
pedPed—
propNameconst char*—
detachPropBOOL—

Returns Entity

Description

Gets a registered/attached prop entity for a particular ped. Second parameter will detach the prop entity from the ped if true. Props primarily appear to come from scenarios, such as a broom or hay bale.

Known props: https://pastebin.com/ap2NEJqB

Usage

Lua
local retval = GetPedRegisterProp(ped, propName, detachProp)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4D0D2E3D8BC000EB, ped, propName, detachProp, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedRegisterProp(ped, propName, detachProp);

// by hash
const retval = Citizen.invokeNative('0x4D0D2E3D8BC000EB', ped, propName, detachProp, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x4D0D2E3D8BC000EB, ped, propName, detachProp);
  • 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.