Jump to content

[Help]Progress Bars


3B00DG4MER

Recommended Posts

Hello,Today i've made a Progress bar,On Client Render +0.5 but

it's not adding 0.5,it's working with +1

addEventHandler("onClientRender",root,function()
       progress = guiProgressBarGetProgress(GUIEditor.progressbar[1])
       guiProgressBarSetProgress(GUIEditor.progressbar[1], progress+0.5)
       outputChatBox ( "Current progress:" .. progress .. "%" )
       end)

Link to comment

My guess would be that the progress bar only accepts round numbers. If you want to add 0.5% you could make it so that the progress bar updates only every 2 frames but the text updates every frame, or you could make your own progress bar using DX functions.

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