RedM Natives

DELETE_ENTITY

Deletes the specified entity.

Hash0xFAA3D236
Runtime nameDeleteEntity
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void DELETE_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity

The entity to delete.

Returns void

Description

Cfx.re native reference

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

Lua
DeleteEntity(entity)

-- always works, by hash
Citizen.InvokeNative(0xfaa3d236, entity)
JavaScript and C#
JavaScript
DeleteEntity(entity);

// by hash
Citizen.invokeNative('0xfaa3d236', entity);
C#
Function.Call((Hash)0xfaa3d236, entity);

Sources

Cfx.re native reference

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