VehicleClient

deleteMissionTrain

DELETE_MISSION_TRAIN0x5B76B14AE875C795

The GTA V native DELETE_MISSION_TRAIN of the VEHICLE namespace, as LS:MP client scripts call it: the global function deleteMissionTrain, in JavaScript and in Lua.

SignatureJavaScript
deleteMissionTrain(train: Vehicle): void
SignatureLua
deleteMissionTrain(train: Vehicle)
⚠
Known issue

The value of train 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
deleteMissionTrain(train);
Lua
deleteMissionTrain(train)

Parameters

ParameterTypeJavaScriptLua
trainVehiclenumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void DELETE_MISSION_TRAIN(Vehicle* train)
Hash
0x5B76B14AE875C795

Open in the interactive natives reference