RedM Natives

DOES_ENTITY_EXIST

Checks if the Entity exists

Hash0xD42BD6EB2E0F1677
Runtime nameDoesEntityExist
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7239B21A38F536BA

Signature

BOOL DOES_ENTITY_EXIST(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Description

Checks if the Entity exists

Usage

Lua
local retval = DoesEntityExist(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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