GET_PED_MAX_HEALTH
Hash
0x4700A416E8324EF3Runtime name
GetPedMaxHealthNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4700A416E8324EF3Signature
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(0x4700A416E8324EF3, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedMaxHealth(ped);
// by hash
const retval = Citizen.invokeNative('0x4700A416E8324EF3', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x4700A416E8324EF3, ped);See also
SET_PED_MAX_HEALTHSets the maximum health of a ped.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.