doesEntityExist
DOES_ENTITY_EXIST0x7239B21A38F536BAThe 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.
doesEntityExist(entity: Entity): booleandoesEntityExist(entity: Entity): booleanUsage
JavaScript
const result = doesEntityExist(entity);Lua
local result = doesEntityExist(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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