RedM Natives

DOES_ENTITY_EXIST

Hash0x3AC90869
Runtime nameDoesEntityExist
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL DOES_ENTITY_EXIST(Object entity);

Parameters

NameTypeDescription
entityObject—

Returns BOOL

Usage

Lua
local retval = DoesEntityExist(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3ac90869, entity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesEntityExist(entity);

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

Sources

Cfx.re native reference

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