_GET_ALL_WAGON_PASSENGERS
Adds all passengers of wagon to itemSet and returns how many there are.
Signature
int _GET_ALL_WAGON_PASSENGERS(Vehicle wagon, ItemSet itemSet); // 0x0E558D3A49D759D6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | wagon | Vehicle |
| 2 | itemSet | ItemSet |
Facts
| Name | _GET_ALL_WAGON_PASSENGERS |
|---|---|
| Hash | 0x0E558D3A49D759D6 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x0E558D3A49D759D6, -- _GET_ALL_WAGON_PASSENGERS
0, -- Vehicle wagon
0, -- ItemSet itemSet
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x0E558D3A49D759D6", // _GET_ALL_WAGON_PASSENGERS
0, // Vehicle wagon
0, // ItemSet itemSet
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x0E558D3A49D759D6, // _GET_ALL_WAGON_PASSENGERS
0, // Vehicle wagon
0 // ItemSet itemSet
);Related VEHICLE natives
- GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS
- GET_VEHICLE_NUMBER_OF_PASSENGERS
- _GET_BALLOON_OBJECT_FROM_VEHICLE
- _GET_BREAKABLE_VEHICLE_LOCK_OBJECT
- _GET_BREAKABLE_VEHICLE_LOCKS_STATE
- _GET_CHECKPOINT_TRAIN_SPAWN_LOCATION
- _GET_CURRENT_TRACK_FOR_TRAIN
- _GET_DRAFT_VEHICLE_DESIRED_SPEED
- _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
- _GET_NEAREST_TRAIN_TRACK_POSITION
- _GET_NUM_BREAKABLE_VEHICLE_LOCK_OBJECTS
- _GET_NUM_CARS_FROM_TRAIN_CONFIG
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.