TASK_GOTO_ENTITY_AIMING
Tasks ped to go to target, starting to aim within StartAimingDist and stopping at distanceToStopAt.
Signature
void TASK_GOTO_ENTITY_AIMING(Ped ped, Entity target, float distanceToStopAt, float StartAimingDist); // 0xA9DA48FAB8A76C12 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | target | Entity |
| 3 | distanceToStopAt | float |
| 4 | StartAimingDist | float |
Facts
| Name | TASK_GOTO_ENTITY_AIMING |
|---|---|
| Hash | 0xA9DA48FAB8A76C12 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xA9DA48FAB8A76C12, -- TASK_GOTO_ENTITY_AIMING
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity target
0.0, -- float distanceToStopAt
0.0 -- float StartAimingDist
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xA9DA48FAB8A76C12", // TASK_GOTO_ENTITY_AIMING
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity target
0.0, // float distanceToStopAt
0.0 // float StartAimingDist
);Function.Call((Hash)0xA9DA48FAB8A76C12, // TASK_GOTO_ENTITY_AIMING
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity target
0.0f, // float distanceToStopAt
0.0f // float StartAimingDist
);Related TASK natives
- TASK_GOTO_ENTITY_OFFSET_XY_AIMING
- TASK_GOTO_ENTITY_OFFSET_XYZ_AIMING
- TASK_GOTO_ENTITY_OFFSET
- TASK_GOTO_ENTITY_OFFSET_XY
- TASK_GOTO_ENTITY_OFFSET_XYZ
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- _TASK_FORCE_FIRE_AT_ENTITY_WHILE_AIMING
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.