guiProgressBarGetProgress | Multi Theft Auto: Wiki Skip to content

guiProgressBarGetProgress

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

guiProgressBarGetProgress ( )

Code Examples

client

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