Jump to content

[Help] Progress Bar


Markeloff

Recommended Posts

Posted

Well, I have no code to post, but I wanted to ask about how to guiProgressBarSetProgress with setTimer.

I want to make the progress bar increase by the time. For Example : 30 seconds makes 20% of the bar.

Posted
local currprog = guiProgressBarGetProgress(progressbar) 
setTimer ( function() 
guiProgressBarSetProgress(progressbar,20) 
end, 30000, 1 ) 

This made 20% for one time only, means the first only no next increase. How to make it make the progress every 30 secs.

Posted
local currprog = guiProgressBarGetProgress(progressbar) 
setTimer ( function() 
guiProgressBarSetProgress(progressbar,currprog+20) 
end, 30000, 5 ) 
  

Doesn't work.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...