ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiProgressBarSetProgress

Function

guiProgressBarSetProgress

ClientInterface (GUI)Identical to MTA:SA

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)