VehicleClient

setMissionTrainAsNoLongerNeeded

SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED0xBBE7648349B49BE8

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

SignatureJavaScript
setMissionTrainAsNoLongerNeeded(train: Vehicle, p1: boolean): void
SignatureLua
setMissionTrainAsNoLongerNeeded(train: Vehicle, p1: boolean)
⚠
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
setMissionTrainAsNoLongerNeeded(train, p1);
Lua
setMissionTrainAsNoLongerNeeded(train, p1)

Parameters

ParameterTypeJavaScriptLua
trainVehiclenumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1 is always 0

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED(Vehicle* train, BOOL p1)
Hash
0xBBE7648349B49BE8

Open in the interactive natives reference