EntityClient

hasEntityBeenDamagedByAnyPed

HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED0x605F5A140F202491

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED(Entity entity)
Hash
0x605F5A140F202491

Open in the interactive natives reference