# TASK::TASK_KNOCKED_OUT

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

## Signature

```c
void TASK_KNOCKED_OUT(Ped ped, float p1, BOOL permanently);
```

## Parameters

- `ped` (`Ped`)
- `p1` (`float`)
- `permanently` (`BOOL`)

## Returns

`void`

## Description

*Source: VORPCORE RDR3natives*

Puts the ped into a knocked out state for a specified duration. If 'permanently' is set to true, the ped will remain knocked out until mainually reset. Duration in seconds.

## Usage

### Lua

```lua
TaskKnockedOut(ped, p1, permanently)

-- always available, by hash
Citizen.InvokeNative(0xF90427F00A495A28, ped, p1, permanently)
```

### JavaScript

```js
TaskKnockedOut(ped, p1, permanently);

// by hash
Citizen.invokeNative('0xF90427F00A495A28', ped, p1 + 0.0000001, permanently);
```

### C#

```csharp
Function.Call((Hash)0xF90427F00A495A28, ped, p1, permanently);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
