Log In
Sign Up
Game code

TASK::TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD

0xE14CCE035AAAB87F ·RVA 0x044C5C60

Signature

void TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD(
    Ped ped,
    Vector3 goToLocation,
    Vector3 focusLocation,
    float speed,
    float distanceToStopAt,
    int unkTrue,
    int unkFlag,
    int aimingFlag
);

The scripts pass 11 values to this native; the decoded signature lists 8 (arguments the game doesn't read are left out).

Parameters 8

#TypeNameNotes
0Pedped –
1Vector3goToLocation –
2Vector3focusLocation –
3floatspeed –
4floatdistanceToStopAt –
5intunkTrue –
6intunkFlag –
7intaimingFlag –

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • goToLocationX, goToLocationY and goToLocationZ in RDR3 are one Vector3 in GTA VI.
  • focusLocationX, focusLocationY and focusLocationZ in RDR3 are one Vector3 in GTA VI.
  • shootAtEnemies, in RDR3's signature, is not passed in GTA VI.
  • noRoadsDistance, in RDR3's signature, is not passed in GTA VI.
  • firingPattern, in RDR3's signature, is not passed in GTA VI.
  • 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_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
invoke<Void>(0xE14CCE035AAAB87F, ped, goToLocation, focusLocation, speed, distanceToStopAt, unkTrue, unkFlag, aimingFlag);

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.