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
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Entity | entity |
– |
| 2 | Vector3 | aim |
– |
| 3 | float | moveBlendRatio |
– |
| 4 | float | targetRadius |
– |
| 5 | int | useNavMesh |
– |
| 6 | int | instantBlendToAim |
– |
| 7 | Hash | firingPattern |
– |
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);// TASK::TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD
Function.Call((Hash)0x48C6231AFB8FE7CD, ped, entity, aim, moveBlendRatio, targetRadius, useNavMesh, instantBlendToAim, firingPattern);-- TASK::TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD
Citizen.InvokeNative(0x48C6231AFB8FE7CD, ped, entity, aim, moveBlendRatio, targetRadius, useNavMesh, instantBlendToAim, firingPattern)// TASK::TASK_GO_TO_ENTITY_WHILE_AIMING_AT_COORD
Citizen.invokeNative("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.