GET_PED_MAX_HEALTH
Signature
int GET_PED_MAX_HEALTH(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Usage
local retval = GetPedMaxHealth(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xa45b6c8d, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedMaxHealth(ped);
// by hash
const retval = Citizen.invokeNative('0xa45b6c8d', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xa45b6c8d, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.