Game code
TASK::TASK_VEHICLE_DRIVE_TO_DESTINATION
0xEBCABA7C80DBE5F2 ·RVA 0x044C9250
Signature
void TASK_VEHICLE_DRIVE_TO_DESTINATION(
Ped driver,
Vehicle vehicle,
Vector3 pos,
float speed,
int drivingFlags,
int p7,
float stoppingRange1,
float stoppingRange2,
BOOL p10,
BOOL p9
);
The scripts pass 13 values to this native; the decoded signature lists 10 (arguments the game doesn't read are left out).
Parameters 10
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | driver |
– |
| 1 | Vehicle | vehicle |
– |
| 2 | Vector3 | pos |
– |
| 3 | float | speed |
– |
| 4 | int | drivingFlags |
– |
| 5 | int | p7 |
– |
| 6 | float | stoppingRange1 |
– |
| 7 | float | stoppingRange2 |
– |
| 8 | BOOL | p10 |
– |
| 9 | BOOL | p9 |
– |
Returns
void Nothing.
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p9 is not in RDR3's signature; the game reads it as a true/false value.
- This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.
Call it
// TASK::TASK_VEHICLE_DRIVE_TO_DESTINATION
invoke<Void>(0xEBCABA7C80DBE5F2, driver, vehicle, pos, speed, drivingFlags, p7, stoppingRange1, stoppingRange2, p10, p9);// TASK::TASK_VEHICLE_DRIVE_TO_DESTINATION
Function.Call((Hash)0xEBCABA7C80DBE5F2, driver, vehicle, pos, speed, drivingFlags, p7, stoppingRange1, stoppingRange2, p10, p9);-- TASK::TASK_VEHICLE_DRIVE_TO_DESTINATION
Citizen.InvokeNative(0xEBCABA7C80DBE5F2, driver, vehicle, pos, speed, drivingFlags, p7, stoppingRange1, stoppingRange2, p10, p9)// TASK::TASK_VEHICLE_DRIVE_TO_DESTINATION
Citizen.invokeNative("0xEBCABA7C80DBE5F2", driver, vehicle, pos, speed, drivingFlags, p7, stoppingRange1, stoppingRange2, p10, p9);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.