DgsProgressBarGetProgress

From Multi Theft Auto: Wiki

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

Syntax

float dgsProgressBarGetProgress ( progressBar theProgressbar )

Required Arguments

  • theProgressbar: The progressbar you want to check.

Returns

Returns a float ranging between 0 and 100.

Click to collapse [-]
Client

Example 1:

DGS = exports.dgs
progressbar = DGS:dgsCreateProgressBar(286, 307, 317, 43, false)    
		
number = 0 
setTimer(function ()
	number = number + 1 
	DGS:dgsProgressBarSetProgress(progressbar,number)
	if number == 100 then
		number = 0
	end 
end,3000,0)

addCommandHandler("Show",function( )
	outputChatBox(DGS:dgsProgressBarGetProgress(progressbar),255,255,0)
end)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D