SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED
Releases the mission train so the game can clean it up.
Signature
void SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED(Vehicle* train, int flags); // 0xBBE7648349B49BE8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle* (out pointer) |
| 2 | flags | int |
Facts
| Name | SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED |
|---|---|
| Hash | 0xBBE7648349B49BE8 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local train = Citizen.InvokeNative(0xBBE7648349B49BE8, -- SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED
Citizen.PointerValueInt(), -- Vehicle* train
0 -- int flags
)
print(train)const train = Citizen.invokeNative("0xBBE7648349B49BE8", // SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED
Citizen.pointerValueInt(), // Vehicle* train
0 // int flags
);
console.log(train)var trainArg = new OutputArgument();
Function.Call((Hash)0xBBE7648349B49BE8, // SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED
trainArg, // Vehicle* train
0 // int flags
);
int train = trainArg.GetResult<int>();Related VEHICLE natives
- SET_MISSION_TRAIN_COORDS
- _SET_MISSION_TRAIN_WARP_TO_COORDS
- LOCK_DOORS_WHEN_NO_LONGER_NEEDED
- SET_TRAIN_CRUISE_SPEED
- SET_TRAIN_OFFSET_FROM_STATION
- SET_TRAIN_SPEED
- SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON
- _CREATE_MISSION_TRAIN
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_FROM_TRAIN_VEHICLE
- _SET_TRAIN_COLLISION_AVOIDANCE_ENABLED
- _SET_TRAIN_DESTRUCTION_ENABLED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.