RedM Natives

SET_PED_MAX_HEALTH

Sets the maximum health of a ped.

Hash0xF5F6378C4F3419D3
Runtime nameSetPedMaxHealth
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF5F6378C4F3419D3

Signature

void SET_PED_MAX_HEALTH(Ped ped, int value);

Parameters

NameTypeDescription
pedPed—
valueint—

Returns void

Description

Sets the maximum health of a ped.

Usage

Lua
SetPedMaxHealth(ped, value)

-- always works, by hash
Citizen.InvokeNative(0xF5F6378C4F3419D3, ped, value)
JavaScript and C#
JavaScript
SetPedMaxHealth(ped, value);

// by hash
Citizen.invokeNative('0xF5F6378C4F3419D3', ped, value);
C#
Function.Call((Hash)0xF5F6378C4F3419D3, ped, value);

See also

Sources

alloc8or RDR3 NativeDB

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