The Lab
VEHICLE native

_GET_ALL_WAGON_PASSENGERS

returns int2 paramsbuild 1207

Adds all passengers of wagon to itemSet and returns how many there are.

Signature

C
int _GET_ALL_WAGON_PASSENGERS(Vehicle wagon, ItemSet itemSet); // 0x0E558D3A49D759D6 b1207

Parameters

#NameType
1wagonVehicle
2itemSetItemSet

Facts

Facts about _GET_ALL_WAGON_PASSENGERS
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.

Lua
local result = Citizen.InvokeNative(0x0E558D3A49D759D6, -- _GET_ALL_WAGON_PASSENGERS
  0, -- Vehicle wagon
  0, -- ItemSet itemSet
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x0E558D3A49D759D6", // _GET_ALL_WAGON_PASSENGERS
  0, // Vehicle wagon
  0, // ItemSet itemSet
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x0E558D3A49D759D6, // _GET_ALL_WAGON_PASSENGERS
  0, // Vehicle wagon
  0 // ItemSet itemSet
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.