getEntityCanBeDamaged
GET_ENTITY_CAN_BE_DAMAGED0xD95CC5D2AB15A09FThe 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.
getEntityCanBeDamaged(entity: Entity): booleangetEntityCanBeDamaged(entity: Entity): booleanUsage
JavaScript
const result = getEntityCanBeDamaged(entity);Lua
local result = getEntityCanBeDamaged(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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