DELETE_TRAIN
Deletes the specified entity and any carriage its attached to, or that is attached to it.
Signature
void DELETE_TRAIN(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The carriage to delete. |
Returns void
Description
Deletes the specified entity and any carriage its attached to, or that is attached to it.
Usage
DeleteTrain(entity)
-- always works, by hash
Citizen.InvokeNative(0x523ba3da, entity)JavaScript and C#
DeleteTrain(entity);
// by hash
Citizen.invokeNative('0x523ba3da', entity);Function.Call((Hash)0x523ba3da, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.