GET_ENTITY_ORPHAN_MODE
Signature
int GET_ENTITY_ORPHAN_MODE(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | 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
local retval = GetEntityOrphanMode(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xd16ea02f, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityOrphanMode(entity);
// by hash
const retval = Citizen.invokeNative('0xd16ea02f', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xd16ea02f, entity);See also
SET_ENTITY_ORPHAN_MODESets what the server will do when the entity no longer has its original owner.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.