PedClient

setPedMaxHealth

SET_PED_MAX_HEALTH0xF5F6378C4F3419D3

The GTA V native SET_PED_MAX_HEALTH of the PED namespace, as LS:MP client scripts call it: the global function setPedMaxHealth, in JavaScript and in Lua.

SignatureJavaScript
setPedMaxHealth(ped: Ped, value: number): void
SignatureLua
setPedMaxHealth(ped: Ped, value: integer)

Usage

JavaScript
setPedMaxHealth(ped, value);
Lua
setPedMaxHealth(ped, value)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
valueintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the maximum health of a ped.

Reference

Namespace
Ped PED
In the game
void SET_PED_MAX_HEALTH(Ped ped, int value)
Hash
0xF5F6378C4F3419D3

Open in the interactive natives reference