RedM Natives

TASK_KNOCKED_OUT_AND_HOGTIED

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

Hash0x42AC6401ABB8C7E5
Runtime nameTaskKnockedOutAndHogtied
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

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

Parameters

NameTypeDescription
pedPed—
koTimeOffsetfloat—
flagsint—

Returns void

Description

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.

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
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags)

-- always works, by hash
Citizen.InvokeNative(0x42AC6401ABB8C7E5, ped, koTimeOffset, flags)
JavaScript and C#
JavaScript
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags);

// by hash
Citizen.invokeNative('0x42AC6401ABB8C7E5', ped, koTimeOffset + 0.0000001, flags);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.