RedM Natives

GET_PED_MAX_HEALTH

Hash0xA45B6C8D
Runtime nameGetPedMaxHealth
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_PED_MAX_HEALTH(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Usage

Lua
local retval = GetPedMaxHealth(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xa45b6c8d, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedMaxHealth(ped);

// by hash
const retval = Citizen.invokeNative('0xa45b6c8d', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xa45b6c8d, ped);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.