RedM Natives

DELETE_TRAIN

Deletes the specified entity and any carriage its attached to, or that is attached to it.

Hash0x523BA3DA
Runtime nameDeleteTrain
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void DELETE_TRAIN(Entity entity);

Parameters

NameTypeDescription
entityEntity

The carriage to delete.

Returns void

Description

Cfx.re native reference

Deletes the specified entity and any carriage its attached to, or that is attached to it.

Usage

Lua
DeleteTrain(entity)

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

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

Sources

Cfx.re native reference

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