The Lab
VEHICLE native

GET_DRAFT_ANIMAL_COUNT

returns BOOL3 paramsbuild 1207

Writes the expected and actual number of draft animals of vehicle into the output pointers.

Signature

C
BOOL GET_DRAFT_ANIMAL_COUNT(Vehicle vehicle, int* expected, int* actual); // 0xA19447D83294E29F b1207

Parameters

#NameType
1vehicleVehicle
2expectedint* (out pointer)
3actualint* (out pointer)

Facts

Facts about GET_DRAFT_ANIMAL_COUNT
Name
GET_DRAFT_ANIMAL_COUNT
Hash
0xA19447D83294E29F
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, expected, actual = Citizen.InvokeNative(0xA19447D83294E29F, -- GET_DRAFT_ANIMAL_COUNT
  0, -- Vehicle vehicle
  Citizen.PointerValueInt(), -- int* expected
  Citizen.PointerValueInt(), -- int* actual
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, expected, actual] = Citizen.invokeNative("0xA19447D83294E29F", // GET_DRAFT_ANIMAL_COUNT
  0, // Vehicle vehicle
  Citizen.pointerValueInt(), // int* expected
  Citizen.pointerValueInt(), // int* actual
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var expectedArg = new OutputArgument();
var actualArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA19447D83294E29F, // GET_DRAFT_ANIMAL_COUNT
  0, // Vehicle vehicle
  expectedArg, // int* expected
  actualArg // int* actual
);
int expected = expectedArg.GetResult<int>();
int actual = actualArg.GetResult<int>();
All VEHICLE natives

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