- Documentation
- Client functions
- guiProgressBarSetProgress
Function
guiProgressBarSetProgress
Sets a progress bar's progress (0-100).
Syntax
bool guiProgressBarSetProgress(gui-progressbar theProgressbar, float progress)Arguments
theProgressbargui-progressbar- The bar.
progressfloat- Progress 0-100.
Returns
true on success.
Example
addEventHandler("onClientRender", root, function()
guiProgressBarSetProgress(hpBar, getElementHealth(localPlayer))
end)