setEntityCanOnlyBeDamagedByEntity
SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_ENTITY0xB17BC6453F6CF5ACThe GTA V native SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_ENTITY of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityCanOnlyBeDamagedByEntity, in JavaScript and in Lua.
setEntityCanOnlyBeDamagedByEntity(entity1: Entity, entity2: Entity): voidsetEntityCanOnlyBeDamagedByEntity(entity1: Entity, entity2: Entity)Usage
JavaScript
setEntityCanOnlyBeDamagedByEntity(entity1, entity2);Lua
setEntityCanOnlyBeDamagedByEntity(entity1, entity2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity1 | Entity | number | integer |
entity2 | Entity | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_ENTITY(Entity entity1, Entity entity2)- Hash
0xB17BC6453F6CF5AC- Introduced
- Game build 944 legacy numbering