_GET_TRAIN_CAR
Based on its name and signature, here is our best reading:
Returns a car entity belonging to train.
Signature
Entity _GET_TRAIN_CAR(Vehicle train); // 0x671A07C9A1CD50A5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle |
Facts
| Name | _GET_TRAIN_CAR |
|---|---|
| Hash | 0x671A07C9A1CD50A5 |
| Namespace | |
| Returns | Entity |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0x671A07C9A1CD50A5, -- _GET_TRAIN_CAR
0, -- Vehicle train
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x671A07C9A1CD50A5", // _GET_TRAIN_CAR
0, // Vehicle train
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x671A07C9A1CD50A5, // _GET_TRAIN_CAR
0 // Vehicle train
);Related VEHICLE natives
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_FROM_TRAIN_VEHICLE
- _GET_TRAIN_CARRIAGE_TRAILER_NUMBER
- _GET_TRAIN_DIRECTION
- _GET_TRAIN_DIRECTION_FROM_INDEX
- _GET_TRAIN_POSITION_ON_TRACK
- _GET_TRAIN_TRACK_JUNCTION_AT_COORDS
- _GET_TRAIN_VEHICLE_FROM_TRACK_INDEX
- _GET_CHECKPOINT_TRAIN_SPAWN_LOCATION
- _GET_CURRENT_TRACK_FOR_TRAIN
- _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
- _GET_NEAREST_TRAIN_TRACK_POSITION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.