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

Managing jobs on your server?

Viper Multi-Job lets players hold several jobs and switch between them with grade, salary and duty handled — QBCore, QBox and ESX, validated server-side.

See Viper Multi-Job →