PedClient

wasPedKnockedOut

WAS_PED_KNOCKED_OUT0x61767F73EACEED21

The GTA V native WAS_PED_KNOCKED_OUT of the PED namespace, as LS:MP client scripts call it: the global function wasPedKnockedOut, in JavaScript and in Lua.

SignatureJavaScript
wasPedKnockedOut(ped: Ped): boolean
SignatureLua
wasPedKnockedOut(ped: Ped): boolean

Usage

JavaScript
const result = wasPedKnockedOut(ped);
Lua
local result = wasPedKnockedOut(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL WAS_PED_KNOCKED_OUT(Ped ped)
Hash
0x61767F73EACEED21

Open in the interactive natives reference