GET_TRAIN_CARRIAGE
Returns carriage trailerNumber of train.
Signature
Vehicle GET_TRAIN_CARRIAGE(Vehicle train, int trailerNumber); // 0xD0FB093A4CDB932C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle |
| 2 | trailerNumber | int |
Facts
| Name | GET_TRAIN_CARRIAGE |
|---|---|
| Hash | 0xD0FB093A4CDB932C |
| Namespace | |
| Returns | Vehicle |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local vehicle = Citizen.InvokeNative(0xD0FB093A4CDB932C, -- GET_TRAIN_CARRIAGE
0, -- Vehicle train
0, -- int trailerNumber
Citizen.ResultAsInteger()
)
print(vehicle)const vehicle = Citizen.invokeNative("0xD0FB093A4CDB932C", // GET_TRAIN_CARRIAGE
0, // Vehicle train
0, // int trailerNumber
Citizen.resultAsInteger()
);
console.log(vehicle)int vehicle = Function.Call<int>((Hash)0xD0FB093A4CDB932C, // GET_TRAIN_CARRIAGE
0, // Vehicle train
0 // int trailerNumber
);Related VEHICLE natives
- _GET_TRAIN_CARRIAGE_TRAILER_NUMBER
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_FROM_TRAIN_VEHICLE
- GET_TRACK_INDEX_OF_TRAIN
- GET_CURRENT_STATION_FOR_TRAIN
- _GET_CHECKPOINT_TRAIN_SPAWN_LOCATION
- _GET_CURRENT_TRACK_FOR_TRAIN
- _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
- _GET_NEAREST_TRAIN_TRACK_POSITION
- _GET_NUM_CARS_FROM_TRAIN_CONFIG
- _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
- _GET_TRAIN_CAR
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.