DgsProgressBarSetProgress

From Multi Theft Auto: Wiki

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

Syntax

bool dgsProgressBarSetProgress ( progressBar theProgressbar, float progress )

Required Arguments

  • theProgressbar: The progressbar you want to change the progress of
  • progress: a float ranging from 0 - 100

Returns

Returns true if the progress was set, false otherwise.

Click to collapse [-]
Client

Example:

DGS = exports.dgs
progressbar = DGS:dgsCreateProgressBar(286, 307, 317, 43, false)    
DGS:dgsProgressBarSetProgress(progressbar,100)

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