Skip to content

VORPCORE/vorp_progressbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VORP ProgressBar

A Client side UI progressbar for vorp resources

How to install

  • Download this repo
  • Copy and paste vorp_progressbar folder to resources/vorp_progressbar
  • Add ensure <YOUR_RESOURCE_NAME> to your server.cfg file
  • Now you are ready to get coding!

How can I use this within my script?

Initiate the progress bar globally (Client side)

   progressbar = exports.vorp_progressbar:initiate()

Start your progress UI

Start Inputs

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
Theme Options
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)

Screenshots

image image

Need More Support?

Requirements