EntityClient

hasEntityBeenDamagedByAnyObject

HAS_ENTITY_BEEN_DAMAGED_BY_ANY_OBJECT0x95EB9964FF5C5C65

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

SignatureJavaScript
hasEntityBeenDamagedByAnyObject(entity: Entity): boolean
SignatureLua
hasEntityBeenDamagedByAnyObject(entity: Entity): boolean

Usage

JavaScript
const result = hasEntityBeenDamagedByAnyObject(entity);
Lua
local result = hasEntityBeenDamagedByAnyObject(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL HAS_ENTITY_BEEN_DAMAGED_BY_ANY_OBJECT(Entity entity)
Hash
0x95EB9964FF5C5C65

Open in the interactive natives reference