EntityClient

doesEntityExist

DOES_ENTITY_EXIST0x7239B21A38F536BA

The GTA V native DOES_ENTITY_EXIST of the ENTITY namespace, as LS:MP client scripts call it: the global function doesEntityExist, in JavaScript and in Lua.

SignatureJavaScript
doesEntityExist(entity: Entity): boolean
SignatureLua
doesEntityExist(entity: Entity): boolean

Usage

JavaScript
const result = doesEntityExist(entity);
Lua
local result = doesEntityExist(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Checks whether an entity exists in the game world.

Reference

Namespace
Entity ENTITY
In the game
BOOL DOES_ENTITY_EXIST(Entity entity)
Hash
0x7239B21A38F536BA

Open in the interactive natives reference