# TASK::TASK_AIM_AT_ENTITY

- **Hash:** `0xCF7569BD0FB480A0`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskAimAtEntity`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_AIM_AT_ENTITY

## Signature

```c
void TASK_AIM_AT_ENTITY(Ped ped, Entity targetEntity, int time, BOOL p3, BOOL p4);
```

## Parameters

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

## Returns

`void`

## Usage

### Lua

```lua
TaskAimAtEntity(ped, targetEntity, time, p3, p4)

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

### JavaScript

```js
TaskAimAtEntity(ped, targetEntity, time, p3, p4);

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

### C#

```csharp
Function.Call((Hash)0xCF7569BD0FB480A0, ped, targetEntity, time, p3, p4);
```

*Sources: alloc8or RDR3 NativeDB.*
