HUDClient

setHealthHudDisplayValues

SET_HEALTH_HUD_DISPLAY_VALUES0x3F5CC444DCAAA8F2

The GTA V native SET_HEALTH_HUD_DISPLAY_VALUES of the HUD namespace, as LS:MP client scripts call it: the global function setHealthHudDisplayValues, in JavaScript and in Lua.

SignatureJavaScript
setHealthHudDisplayValues(
  health: number,
  capacity: number,
  wasAdded: boolean
): void
SignatureLua
setHealthHudDisplayValues(
  health: integer,
  capacity: integer,
  wasAdded: boolean
)

Usage

JavaScript
setHealthHudDisplayValues(health, capacity, wasAdded);
Lua
setHealthHudDisplayValues(health, capacity, wasAdded)

Parameters

ParameterTypeJavaScriptLua
healthintnumberinteger
capacityintnumberinteger
wasAddedBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_HEALTH_HUD_DISPLAY_VALUES(int health, int capacity, BOOL wasAdded)
Hash
0x3F5CC444DCAAA8F2

Open in the interactive natives reference