Log In
Sign Up
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

#TypeNameNotes
0Peddriver –
1Vehiclevehicle –
2EntitytargetEntity –
3floatspeed –
4intdrivingStyle –
5intminDistance –
6BOOLp6 –

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);

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.