# TASK::TASK_AIM_GUN_AT_ENTITY

- **Hash:** `0x9B53BB6E8943AF53`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskAimGunAtEntity`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_AIM_GUN_AT_ENTITY

## Signature

```c
void TASK_AIM_GUN_AT_ENTITY(Ped ped, Entity targetEntity, int duration, BOOL p3, int p4);
```

## Parameters

- `ped` (`Ped`)
- `targetEntity` (`Entity`)
- `duration` (`int`)
- `p3` (`BOOL`)
- `p4` (`int`)

## Returns

`void`

## Description

duration: the amount of time in milliseconds to do the task.  -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped

## Usage

### Lua

```lua
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4)

-- always available, by hash
Citizen.InvokeNative(0x9B53BB6E8943AF53, ped, targetEntity, duration, p3, p4)
```

### JavaScript

```js
TaskAimGunAtEntity(ped, targetEntity, duration, p3, p4);

// by hash
Citizen.invokeNative('0x9B53BB6E8943AF53', ped, targetEntity, duration, p3, p4);
```

### C#

```csharp
Function.Call((Hash)0x9B53BB6E8943AF53, ped, targetEntity, duration, p3, p4);
```

*Sources: alloc8or RDR3 NativeDB.*
