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
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Entity | entity |
– |
| 2 | Vector3 | offset |
– |
| 3 | float | movementSpeed |
– |
| 4 | int | timeout |
– |
| 5 | float | stoppingRange |
– |
| 6 | BOOL | persistFollowing |
the game doesn't read it. |
| 7 | BOOL | p9 |
the game doesn't read it. |
| 8 | BOOL | walkOnly |
– |
| 9 | BOOL | p11 |
the game doesn't read it. |
| 10 | BOOL | p12 |
– |
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);// TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY
Function.Call((Hash)0xCA847381CFB51BD1, ped, entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12);-- TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY
Citizen.InvokeNative(0xCA847381CFB51BD1, ped, entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12)// TASK::TASK_FOLLOW_TO_OFFSET_OF_ENTITY
Citizen.invokeNative("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.