xXMADEXx Posted February 17, 2013 Share 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 ) Link to comment
Castillo Posted February 17, 2013 Share Posted February 17, 2013 By work you mean increase the progress? if so, use: guiProgressBarSetProgress Link to comment
xXMADEXx Posted February 17, 2013 Author Share 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% ? Link to comment
Castillo Posted February 17, 2013 Share Posted February 17, 2013 setTimer ( function ( ) guiProgressBarSetProgress ( electrition_job_progressBar, guiProgressBarGetProgress ( electrition_job_progressBar ) + 1 ) end ,500, 30 ) Link to comment
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