setMissionTrainAsNoLongerNeeded
SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED0xBBE7648349B49BE8The 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.
setMissionTrainAsNoLongerNeeded(train: Vehicle, p1: boolean): voidsetMissionTrainAsNoLongerNeeded(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
train | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
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