Log In
Sign Up
Game code

TASK::TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD

0x48C6231AFB8FE7CD ·RVA 0x044C6250

Signature

void TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD(
    Ped ped,
    Entity entity,
    Vector3 aim,
    float moveBlendRatio,
    float targetRadius,
    int useNavMesh,
    int instantBlendToAim,
    Hash firingPattern
);

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 –
1Entityentity –
2Vector3aim –
3floatmoveBlendRatio –
4floattargetRadius –
5intuseNavMesh –
6intinstantBlendToAim –
7HashfiringPattern –

Returns

void Nothing.

Notes

  • Names from GTA V; types from the game code, which differs from GTA V's signature:
  • aimX, aimY and aimZ in GTA V are one Vector3 in GTA VI.
  • shoot, in GTA V's signature, is not passed in GTA VI.
  • slowDistance, in GTA V's signature, is not passed in GTA VI.
  • This lines up with GTA V's signature in more than one way; it takes the one that keeps GTA V's arguments first and puts the new ones after them.

Call it

// TASK::TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD
invoke<Void>(0x48C6231AFB8FE7CD, ped, entity, aim, moveBlendRatio, targetRadius, useNavMesh, instantBlendToAim, firingPattern);

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.