_SET_TRAIN_MAX_SPEED
Sets the maximum speed of train.
Signature
void _SET_TRAIN_MAX_SPEED(Vehicle train, float speed); // 0x9F29999DFDF2AEB8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle |
| 2 | speed | float |
Facts
| Name | _SET_TRAIN_MAX_SPEED |
|---|---|
| Hash | 0x9F29999DFDF2AEB8 |
| 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(0x9F29999DFDF2AEB8, -- _SET_TRAIN_MAX_SPEED
0, -- Vehicle train
0.0 -- float speed
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x9F29999DFDF2AEB8", // _SET_TRAIN_MAX_SPEED
0, // Vehicle train
0.0 // float speed
);Function.Call((Hash)0x9F29999DFDF2AEB8, // _SET_TRAIN_MAX_SPEED
0, // Vehicle train
0.0f // float speed
);Related VEHICLE natives
- _SET_TRAIN_COLLISION_AVOIDANCE_ENABLED
- _SET_TRAIN_DESTRUCTION_ENABLED
- _SET_TRAIN_HALT
- _SET_TRAIN_LEAVE_STATION
- _SET_TRAIN_REVERSE_ENABLED
- _SET_TRAIN_STOPS_FOR_STATIONS
- _SET_TRAIN_TRACK_JUNCTION_SWITCH
- SET_TRAIN_CRUISE_SPEED
- SET_TRAIN_SPEED
- _SET_DRAFT_VEHICLE_DESIRED_SPEED
- _SET_MISSION_TRAIN_WARP_TO_COORDS
- _SET_OARS_ROWING_SPEED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.