Game code
TASK::TASK_VEHICLE_FOLLOW
0xF9D91C4903ABA560 ·RVA 0x044C95C0
Signature
void TASK_VEHICLE_FOLLOW(
Ped driver,
Vehicle vehicle,
Entity targetEntity,
float speed,
int drivingStyle,
int minDistance,
BOOL p6
);
The scripts pass 10 values to this native; the decoded signature lists 7 (arguments the game doesn't read are left out).
Parameters 7
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | driver |
– |
| 1 | Vehicle | vehicle |
– |
| 2 | Entity | targetEntity |
– |
| 3 | float | speed |
– |
| 4 | int | drivingStyle |
– |
| 5 | int | minDistance |
– |
| 6 | BOOL | p6 |
– |
Returns
void Nothing.
Notes
- Names from GTA V; types from the game code, which differs from GTA V's signature:
- p6 is not in GTA V's signature; the game reads it as a true/false value.
Call it
// TASK::TASK_VEHICLE_FOLLOW
invoke<Void>(0xF9D91C4903ABA560, driver, vehicle, targetEntity, speed, drivingStyle, minDistance, p6);// TASK::TASK_VEHICLE_FOLLOW
Function.Call((Hash)0xF9D91C4903ABA560, driver, vehicle, targetEntity, speed, drivingStyle, minDistance, p6);-- TASK::TASK_VEHICLE_FOLLOW
Citizen.InvokeNative(0xF9D91C4903ABA560, driver, vehicle, targetEntity, speed, drivingStyle, minDistance, p6)// TASK::TASK_VEHICLE_FOLLOW
Citizen.invokeNative("0xF9D91C4903ABA560", driver, vehicle, targetEntity, speed, drivingStyle, minDistance, p6);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.