A progress bar for GTA V FiveM which is triggered by an Action such as using the ATM.
- Clone or Download the progressbar folder.
- Drop the folder in your FiveM Server Resources folder.
- Add the Resource to your FiveM server.cfg file.
- In your own resource lua script call:
exports["progressbar"]:createProgressBar(Label, Duration)
Code Example

The Export returns a Boolean. The Two Parameters of the Export is a STRING and INT.
(The duration (INT) is in seconds and not milliseconds as some others do.)
IF the bool returns TRUE that means the bar successfully finished. Task complete.
IF the bool returns FALSE that means the bar was stop / interrupted. Task failed.
So when the Export is called store that into a varible such as in the code example -> local result.
Then use the variable result in a conditional to trigger what happens.
In the example IF the export returns TRUE it will prompt the ATM bank UI.
And IF it returned FALSE it wouldn't open the ATM bank UI.
Currently the ONLY way to stop / interrupt the progress bar is with SPACEBAR.
(More ways of interrupting the Progress bar can be added in the progressbar-c.lua)
https://streamable.com/wremi9
Screenshot Examples

