HUDClient

setAbilityBarValue

SET_ABILITY_BAR_VALUE0x9969599CCFF5D85E

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

SignatureJavaScript
setAbilityBarValue(p0: number, p1: number): void
SignatureLua
setAbilityBarValue(p0: number, p1: number)

Usage

JavaScript
setAbilityBarValue(p0, p1);
Lua
setAbilityBarValue(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0floatnumbernumber
p1floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_ABILITY_BAR_VALUE(float p0, float p1)
Hash
0x9969599CCFF5D85E

Open in the interactive natives reference