Jump to content

gui progressBar problem


scolen

Recommended Posts

Why is guiSetVisible not when progressbar is 0 ? 

  timeBar = 100
  progBar = guiCreateProgressBar(321, 533, 159, 34, false)

  setTimer(function()
    timeBar = timeBar - 6.66666666667
    lastTime = timeBar
    guiProgressBarSetProgress(progBar, lastTime)
      
    if lastTime == 0 then 
      guiSetVisible(progBar, false)
    end
  end, 1000, 15)

 

Link to comment
timeBar = 100
progBar = guiCreateProgressBar(321, 533, 159, 34, false)

setTimer(function()
  timeBar = timeBar - 6.66666666667
  lastTime = timeBar
  guiProgressBarSetProgress(progBar, lastTime)
  
  if lastTime <= 0 then 
    guiSetVisible(progBar, false)
  end
end, 1000, 15)

 

I didn't understand, but one detail caught my attention and I wanted to edit it.

Edited by Shady1
  • Thanks 1
Link to comment
56 minutes ago, Shady1 said:
timeBar = 100
progBar = guiCreateProgressBar(321, 533, 159, 34, false)

setTimer(function()
  timeBar = timeBar - 6.66666666667
  lastTime = timeBar
  guiProgressBarSetProgress(progBar, lastTime)
  
  if lastTime <= 0 then 
    guiSetVisible(progBar, false)
  end
end, 1000, 15)

 

I didn't understand, but one detail caught my attention and I wanted to edit it.

ohhh thanks bro worked ❤️

Link to comment

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...