_GET_PED_REGISTER_PROP
Gets a registered/attached prop entity for a particular ped.
Hash
0x4D0D2E3D8BC000EBRuntime name
GetPedRegisterPropNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Entity _GET_PED_REGISTER_PROP(Ped ped, const char* propName, BOOL detachProp);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
propName | const char* | — |
detachProp | BOOL | — |
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
local retval = GetPedRegisterProp(ped, propName, detachProp)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4D0D2E3D8BC000EB, ped, propName, detachProp, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedRegisterProp(ped, propName, detachProp);
// by hash
const retval = Citizen.invokeNative('0x4D0D2E3D8BC000EB', ped, propName, detachProp, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.