_SET_TRAIN_DESTRUCTION_ENABLED
Enables or disables destruction of train.
Signature
void _SET_TRAIN_DESTRUCTION_ENABLED(Vehicle train, BOOL enabled); // 0x07E2E21E799080A0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle |
| 2 | enabled | BOOL |
Facts
| Name | _SET_TRAIN_DESTRUCTION_ENABLED |
|---|---|
| Hash | 0x07E2E21E799080A0 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x07E2E21E799080A0, -- _SET_TRAIN_DESTRUCTION_ENABLED
0, -- Vehicle train
false -- BOOL enabled
)Citizen.invokeNative("0x07E2E21E799080A0", // _SET_TRAIN_DESTRUCTION_ENABLED
0, // Vehicle train
false // BOOL enabled
);Function.Call((Hash)0x07E2E21E799080A0, // _SET_TRAIN_DESTRUCTION_ENABLED
0, // Vehicle train
false // BOOL enabled
);Related VEHICLE natives
- _SET_TRAIN_COLLISION_AVOIDANCE_ENABLED
- _SET_TRAIN_REVERSE_ENABLED
- _SET_TRAIN_HALT
- _SET_TRAIN_LEAVE_STATION
- _SET_TRAIN_MAX_SPEED
- _SET_TRAIN_STOPS_FOR_STATIONS
- _SET_TRAIN_TRACK_JUNCTION_SWITCH
- _SET_MISSION_TRAIN_WARP_TO_COORDS
- _SET_RANDOM_TRAINS_WHISTLE_ENABLED
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_FROM_TRAIN_VEHICLE
- SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.