EntityClient

isEntityDead

IS_ENTITY_DEAD0x5F9532F3B5CC2551

The GTA V native IS_ENTITY_DEAD of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityDead, in JavaScript and in Lua.

SignatureJavaScript
isEntityDead(entity: Entity, p1: boolean): boolean
SignatureLua
isEntityDead(entity: Entity, p1: boolean): boolean

Usage

JavaScript
const result = isEntityDead(entity, p1);
Lua
local result = isEntityDead(entity, p1)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_DEAD(Entity entity, BOOL p1)
Hash
0x5F9532F3B5CC2551

Open in the interactive natives reference