GET_ENTITY_MAX_HEALTH
Currently it only works with peds.
Signature
int GET_ENTITY_MAX_HEALTH(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Description
Currently it only works with peds.
Usage
local retval = GetEntityMaxHealth(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xc7ae6aa1, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityMaxHealth(entity);
// by hash
const retval = Citizen.invokeNative('0xc7ae6aa1', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xc7ae6aa1, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.