A Client side UI progressbar for VORP Resources
- Download this repo
- Copy and paste
vorp_progressbarfolder toresources/vorp_progressbar - Add
ensure vorp_progressbarto yourserver.cfgfile - Now you are ready to get coding!
progressbar = exports.vorp_progressbar:initiate()| Input | Info |
|---|---|
| message | What you want the progress to display |
| time | how long the progress should display (in milliseconds) |
| callback | function that will get called when the progress is done |
| theme | What you want the progress bar/circle to look like |
| color | What color (hex or rgb) do you want the progress loader to be. Defaults to a dark red. |
| width | What width you want the linear progressbar to be. Default: 20vw |
| Option | Info |
|---|---|
| linear | Shows a linear progress flat bar |
| circle | Shows a circle progress bar |
| innercircle | Shows a circle progress bar with a seconds countdown in the middle |
Examples:
progressbar.start('Loading...', 20000, function ()
print('DONE!!!!')
end, 'linear', '#ff0000', '20vw') progressbar.start('Loading...', 20000, function ()
print('DONE!!!!')
end) result = exports.vorp_progressbar:CancelNext() result = exports.vorp_progressbar:CancelAll()
