Log In
Sign Up
Game code

TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY

0xCA847381CFB51BD1 ·RVA 0x044C58A0

Signature

void TASK_FOLLOW_TO_OFFSET_OF_ENTITY(
    Ped ped,
    Entity entity,
    Vector3 offset,
    float movementSpeed,
    int timeout,
    float stoppingRange,
    BOOL persistFollowing,
    BOOL p9,
    BOOL walkOnly,
    BOOL p11,
    BOOL p12
);

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

Parameters 11

#TypeNameNotes
0Pedped –
1Entityentity –
2Vector3offset –
3floatmovementSpeed –
4inttimeout –
5floatstoppingRange –
6BOOLpersistFollowing the game doesn't read it.
7BOOLp9 the game doesn't read it.
8BOOLwalkOnly –
9BOOLp11 the game doesn't read it.
10BOOLp12 –

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • p13, 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_FOLLOW_TO_OFFSET_OF_ENTITY
invoke<Void>(0xCA847381CFB51BD1, ped, entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12);

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.