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).
0x42AC6401ABB8C7E5TaskKnockedOutAndHogtiedSignature
void TASK_KNOCKED_OUT_AND_HOGTIED(Ped ped, float koTimeOffset, int flags);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
koTimeOffset | float | — |
flags | int | — |
Returns void
Description
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.
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
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags)
-- always works, by hash
Citizen.InvokeNative(0x42AC6401ABB8C7E5, ped, koTimeOffset, flags)JavaScript and C#
TaskKnockedOutAndHogtied(ped, koTimeOffset, flags);
// by hash
Citizen.invokeNative('0x42AC6401ABB8C7E5', ped, koTimeOffset + 0.0000001, flags);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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.