ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
shared

IsEntityDead

FiveM shared native documentation with a Lua example.

Summary

Returns whether an entity (usually a ped) is dead. Used for death/revive systems and validity checks.

Returns

boolean

Parameters

entitynumberThe entity.

Example

if IsEntityDead(PlayerPedId()) then
  -- trigger death/respawn logic
end

Common pitfalls

  • For players, framework death systems are usually more reliable than raw death state.
  • Combine with DoesEntityExist for safety on networked entities.

Related natives

Related guides

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →