# TASK::TASK_KNOCKED_OUT_AND_HOGTIED

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

## Signature

```c
void TASK_KNOCKED_OUT_AND_HOGTIED(Ped ped, float koTimeOffset, int flags);
```

## Parameters

- `ped` (`Ped`)
- `koTimeOffset` (`float`)
- `flags` (`int`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

koTimeOffset (seconds): offset applied to the knockout timer-positive delays recovery (longer KO), negative brings recovery sooner, 0.0 initializes with no extension (immediate baseline).
flags (bitmask): 1 = default variant (forwarded to the KO task ctor; R* commonly uses 1), 2 = sets an unk internal synced toggle for this task, 4 = sets another unk internal synced toggle.

*Source: VORPCORE RDR3natives*

koTimeOffset (seconds): offset applied to the knockout timer—positive delays recovery (longer KO), negative brings recovery sooner, 0.0 initializes with no extension (immediate baseline).
flags (bitmask): 1 = default variant (forwarded to the KO task ctor; R* commonly uses 1), 2 = sets an unk internal synced toggle for this task, 4 = sets another unk internal synced toggle.

## Usage

### Lua

```lua
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags)

-- always available, by hash
Citizen.InvokeNative(0x42AC6401ABB8C7E5, ped, koTimeOffset, flags)
```

### JavaScript

```js
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags);

// by hash
Citizen.invokeNative('0x42AC6401ABB8C7E5', ped, koTimeOffset + 0.0000001, flags);
```

### C#

```csharp
Function.Call((Hash)0x42AC6401ABB8C7E5, ped, koTimeOffset, flags);
```

- 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.*
