I just woke up yesterday and thought: Why not create my own progress bar?
Features
- Customizable Color for each progress bar
- Bar will glow progressively
- Simple Configuration
- Simple yet beautiful UI built from scratch using CSS
- Spam prevention
Video:
Usage:
exports['an_progBar']:run(TIME,TEXT,OPTIONAL_COLOR)
TIME
: [Number] Time in seconds
TEXT
: [String] Text shown in the progress bar
OPTIONAL_COLOR
: [String] Color in HEX format - This is 100% OPTIONAL, not using this argument will make the progress bar use the Config.defaultColor set on the config file.
exports['an_progBar']:stop()
Used to cancel the progress bar.
Example Code:
-- code before the progress bar
exports['an_progBar']:run(10,'Lockpicking','#E14127')
Citizen.Wait(10000)
-- code after the progress bar