RedM Natives

GET_ENTITY_ORPHAN_MODE

Hash0xD16EA02F
Runtime nameGetEntityOrphanMode
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_ENTITY_ORPHAN_MODE(Entity entity);

Parameters

NameTypeDescription
entityEntity

The entity to get the orphan mode of

Returns int — Returns the entities current orphan mode, refer to enum in [SET_ENTITY_ORPHAN_MODE](#\_0x489E9162)

Usage

Lua
local retval = GetEntityOrphanMode(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xd16ea02f, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityOrphanMode(entity);

// by hash
const retval = Citizen.invokeNative('0xd16ea02f', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xd16ea02f, entity);

See also

Sources

Cfx.re native reference

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