xXMADEXx Posted February 17, 2013 Posted February 17, 2013 How can i set a timer for a progress bar, i have a timer, but im not sure how to make the progress bar work... startTimerWhenMarkerHit = setTimer ( function () destroyElement(electritonPoleBlip) destroyElement(electritionPoleMarker) setPedAnimation ( localPlayer ) triggerEvent('jobs:electrition:createPoles',localPlayer) triggerServerEvent("jobs:electrition:fixPole",localPlayer) showCursor(false,false) setElementFrozen(localPlayer,false) guiSetVisible(electrition_job_progressBar,false) end ,15000,1 ) The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted February 17, 2013 Posted February 17, 2013 By work you mean increase the progress? if so, use: guiProgressBarSetProgress San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted February 17, 2013 Author Posted February 17, 2013 By work you mean increase the progress? if so, use: guiProgressBarSetProgress Yah, but how do i make gain progress ever 500 ? So that in 15 secs its at 100% ? The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted February 17, 2013 Posted February 17, 2013 setTimer ( function ( ) guiProgressBarSetProgress ( electrition_job_progressBar, guiProgressBarGetProgress ( electrition_job_progressBar ) + 1 ) end ,500, 30 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now