TASK_KNOCKED_OUT
Puts the ped into a knocked out state for a specified duration.
Hash
0xF90427F00A495A28Runtime name
TaskKnockedOutNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_KNOCKED_OUT(Ped ped, float p1, BOOL permanently);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | float | — |
permanently | BOOL | — |
Returns void
Description
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
TaskKnockedOut(ped, p1, permanently)
-- always works, by hash
Citizen.InvokeNative(0xF90427F00A495A28, ped, p1, permanently)JavaScript and C#
TaskKnockedOut(ped, p1, permanently);
// by hash
Citizen.invokeNative('0xF90427F00A495A28', ped, p1 + 0.0000001, permanently);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. 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.