EntityClient

getEntityCanBeDamaged

GET_ENTITY_CAN_BE_DAMAGED0xD95CC5D2AB15A09F

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL GET_ENTITY_CAN_BE_DAMAGED(Entity entity)
Hash
0xD95CC5D2AB15A09F
Introduced
Game build 757 legacy numbering
Formerly
_GET_ENTITY_CAN_BE_DAMAGED

Open in the interactive natives reference