setPedMaxHealth
SET_PED_MAX_HEALTH0xF5F6378C4F3419D3The 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.
setPedMaxHealth(ped: Ped, value: number): voidsetPedMaxHealth(ped: Ped, value: integer)Usage
JavaScript
setPedMaxHealth(ped, value);Lua
setPedMaxHealth(ped, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
value | int | number | integer |
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