GET_ENTITY_HEALTH
Hash
0x82368787EA73C0F7Runtime name
GetEntityHealthNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xEEF059FAD016D209Signature
int GET_ENTITY_HEALTH(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Usage
local retval = GetEntityHealth(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x82368787EA73C0F7, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityHealth(entity);
// by hash
const retval = Citizen.invokeNative('0x82368787EA73C0F7', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x82368787EA73C0F7, entity);See also
_CHANGE_ENTITY_HEALTHAlters entity's health by 'amount'.SET_ENTITY_HEALTHSets the entity's health.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.