Native referenceRedMclient

_CHANGE_ENTITY_HEALTH

0x835F131E7DC8F97A ENTITY
FUNCTION SIGNATURE
BOOL _CHANGE_ENTITY_HEALTH(Entity entity, float amount, Entity entity2, Hash weaponHash);
Property Value
Native Name _CHANGE_ENTITY_HEALTH
Hash 0x835F131E7DC8F97A
Return Type BOOL
Build 1207
API Set client
Parameters entity (Entity), amount (float), entity2 (Entity), weaponHash (Hash)

Description: Alters entity's health by 'amount'. Can be negative (to drain health). In the scripts entity2 and weaponHash are unused (zero).

Usage

Lua (Direct):

local result = ChangeEntityHealth(entity, amount, entity2, weaponHash)

Lua (Hash):

local result = Citizen.InvokeNative(0x835F131E7DC8F97A, entity, amount, entity2, weaponHash)
Back to ENTITY