DELETE_ENTITY
Deletes the specified entity.
Signature
void DELETE_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to delete. |
Returns void
Description
Deletes the specified entity.
NOTE: For trains this will only work if called on the train engine, it will not work on its carriages.
Usage
DeleteEntity(entity)
-- always works, by hash
Citizen.InvokeNative(0xfaa3d236, entity)JavaScript and C#
DeleteEntity(entity);
// by hash
Citizen.invokeNative('0xfaa3d236', entity);Function.Call((Hash)0xfaa3d236, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.