TASK_AIM_GUN_AT_ENTITY
Tasks ped to aim its gun at targetEntity for duration milliseconds.
Signature
void TASK_AIM_GUN_AT_ENTITY(Ped ped, Entity targetEntity, int duration, BOOL p3, int p4); // 0x9B53BB6E8943AF53 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetEntity | Entity |
| 3 | duration | int |
| 4 | p3 | BOOL |
| 5 | p4 | int |
Facts
| Name | TASK_AIM_GUN_AT_ENTITY |
|---|---|
| Hash | 0x9B53BB6E8943AF53 |
| 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(0x9B53BB6E8943AF53, -- TASK_AIM_GUN_AT_ENTITY
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity targetEntity
0, -- int duration
false, -- BOOL p3
0 -- int p4
)Citizen.invokeNative("0x9B53BB6E8943AF53", // TASK_AIM_GUN_AT_ENTITY
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity targetEntity
0, // int duration
false, // BOOL p3
0 // int p4
);Function.Call((Hash)0x9B53BB6E8943AF53, // TASK_AIM_GUN_AT_ENTITY
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity targetEntity
0, // int duration
false, // BOOL p3
0 // int p4
);Related TASK natives
- TASK_AIM_GUN_AT_COORD
- TASK_AIM_AT_ENTITY
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_AIM_AT_COORD
- TASK_FOLLOW_ENTITY_ALONG_WAYPOINT_RECORDING_AT_OFFSET
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_LOOK_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.