Skip to content

captaindarkness/Captains-Progress-Bar-FiveM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Captains-Progress-Bar

About

A progress bar for GTA V FiveM which is triggered by an Action such as using the ATM.

How to Install

  • Clone or Download the progressbar folder.
  • Drop the folder in your FiveM Server Resources folder.
  • Add the Resource to your FiveM server.cfg file.

How to Use

  • In your own resource lua script call:
    exports["progressbar"]:createProgressBar(Label, Duration)

Code Example
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
Impound
ATM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors