deleteEntity
DELETE_ENTITY0xAE3CBE5BF394C9C9The GTA V native DELETE_ENTITY of the ENTITY namespace, as LS:MP client scripts call it: the global function deleteEntity, in JavaScript and in Lua.
deleteEntity(entity: Entity): voiddeleteEntity(entity: Entity)⚠
Known issue
The value of entity does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.
Usage
JavaScript
deleteEntity(entity);Lua
deleteEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
Reference
- Namespace
- Entity ENTITY
- In the game
void DELETE_ENTITY(Entity* entity)- Hash
0xAE3CBE5BF394C9C9