guiProgressBarGetProgress | Multi Theft Auto: Wiki Skip to content

guiProgressBarGetProgress

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function gets the progress of a progress bar as a percentage.

Syntax

float guiProgressBarGetProgress ( progressBar theProgressbar )
Required Arguments
  • theProgressbar: The progressbar you want to check.

Returns

  • float: value

Returns a float ranging between 0 and 100.

Code Examples

shared

This example gets the progress of a bar called "somebar" created withguiCreateProgressBar, and outputs it to the chatbox.

-- If the progressbar exsist then
if ( somebar ) then
-- get the progress
progress = guiProgressBarGetProgress(somebar)
-- output to the chatbox
outputChatBox ( "Current progress:" .. progress .. "%" )
end

See Also

GUI Functions