# TASK::TASK_LOOK_AT_ENTITY

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

## Signature

```c
void TASK_LOOK_AT_ENTITY(Ped ped, Entity lookAtTarget, int duration, int p3, int p4, int p5);
```

## Parameters

- `ped` (`Ped`)
- `lookAtTarget` (`Entity`)
- `duration` (`int`)
- `p3` (`int`)
- `p4` (`int`)
- `p5` (`int`)

## Returns

`void`

## Description

param3: duration in ms, use -1 to look forever
param4: using 2048 is fine
param5: using 3 is fine

## Usage

### Lua

```lua
TaskLookAtEntity(ped, lookAtTarget, duration, p3, p4, p5)

-- always available, by hash
Citizen.InvokeNative(0x69F4BE8C8CC4796C, ped, lookAtTarget, duration, p3, p4, p5)
```

### JavaScript

```js
TaskLookAtEntity(ped, lookAtTarget, duration, p3, p4, p5);

// by hash
Citizen.invokeNative('0x69F4BE8C8CC4796C', ped, lookAtTarget, duration, p3, p4, p5);
```

### C#

```csharp
Function.Call((Hash)0x69F4BE8C8CC4796C, ped, lookAtTarget, duration, p3, p4, p5);
```

*Sources: alloc8or RDR3 NativeDB.*
