GET_DRAFT_ANIMAL_COUNT
Writes the expected and actual number of draft animals of vehicle into the output pointers.
Signature
BOOL GET_DRAFT_ANIMAL_COUNT(Vehicle vehicle, int* expected, int* actual); // 0xA19447D83294E29F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | expected | int* (out pointer) |
| 3 | actual | int* (out pointer) |
Facts
| 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.
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
-- ...
endconst [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) {
// ...
}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>();Related VEHICLE natives
- _SET_DRAFT_VEHICLE_ALLOW_DRAFT_ANIMAL_AUTO_CREATION
- _GET_DRAFT_VEHICLE_DESIRED_SPEED
- _GET_NUM_DRAFT_VEHICLE_HARNESS_PED
- _GET_NUM_DRAFT_VEHICLE_LOGS
- _GET_NUM_DRAFT_VEHICLE_STRAPS
- _GET_PED_IN_DRAFT_HARNESS
- _SET_DRAFT_ANIMAL_RANDOM_SEED
- GET_DRIVER_OF_VEHICLE
- GET_CLOSEST_VEHICLE
- GET_CURRENT_STATION_FOR_TRAIN
- GET_LAST_DRIVEN_VEHICLE
- GET_LAST_PED_IN_VEHICLE_SEAT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.