IsPedDeadOrDying
Docslocal retval = IsPedDeadOrDying(ped, checkMeleeDeathFlags)Description
Introduced in build 323
Determines if a ped is dead. Contrary to what the name might suggest, it does not always detect when a ped is in the 'dying' phase (transitioning to death). The exception is when checkMeleeDeathFlags is set to true, which then includes peds in the midst of melee takedown moves as being in a dying state, even if the death task has not yet started.
Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The ped to check. |
checkMeleeDeathFlags | BOOL | If set to `true`, extends the check to include melee takedown moves as part of the dying phase. |
Quick Snippet: Get Ped Handleped
pedUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
BOOLReturns TRUE (1) or FALSE (0).