[RELEASE] Progress Bars 1.0 [STANDALONE]


I spent some time trying different ways of doing this and ended up making a basic NUI that adds progress bars that you can add for when using something in your inventory script for example, basically however you want.

This is really basic and in the __reosurce.lua I export the function to start the progress bar with time in MS and the text you want it to display. Example will be below. This is simple to use and because I use export you can add it into any resource you want.

exports['progressBars']:startUI(Time_MS, "Text Display")

exports['progressBars']:startUI(30000, "Reparing")
This will display and progress over 30 seconds / 30000ms and show Repaiing as the text

This does not need to be in a loop or anything you just need to call it as done above and send it the 2 arguments as shown in the example above.

Feel free to edit this, change colors or whatever you want just do NOT claim it is yours!
If you need any help please post below or direct message me on the forums and I will try my best to help you BUT if you make any changes to the resource then I will not help.

Enjoy the resource and I hope it is useful.

Download: https://github.com/chipsahoy6/progressBars/releases/tag/1.0

This isn’t really “documentation” but it is to help some of you out there!

  1. If you want to change the color of the bar or font then do that through the CSS and you can find that easy enough.
  2. If you want it to fully display then currently you have to do the export line in your desired resource and after add a citizen.wait for the same amount of time. This might be changed in an upcoming update but I do not have many further plans for this resource just thought it had a place to be released.
  3. As I said modifying the code itself is fine but I am not willing to help fix it if you break it from there!

Just hope this works for all you guys and I can help you get what you want done, done. Sorry for late reply’s I had school and went to bed after releasing. Thanks for the support guys and I am glad so many of you like it.

I am no longer providing support for this and I am sure most will not like this but I have a lot I do myself and do not really have the time to provide support. If you need help leave a comment I might see it but if not someone else might help you. This is quite a simple script so as long as you have not renamed the resource or anything then most likely it will be a issue of how you are using it or where you are using it.

[RELEASE] [ESX] Lenzh_Chopshop v2!
[Release] [ESX] Loot the dead body
[RELEASE] esx_warehouse GTA: Online like smuggling job
Please delete this dont want to maintain anymore
[EDIT] progressBars for mechanicjob [ENG/ITA]
[Release][ESX][Disc] X-Hotwire, hotwire script with keys and NPC interactions
[RELEASE] Pixel_drugsystem REWORKED
[ESX] [Well Optimized] Search dumpsters
[ESX] LRP-Moteros [Optimizado]
[ESX] USB System (Drugs and more)
[Release][ESX] onyxLocksystem | Keys, Hotwiring
[RELEASE] ESX/vRP Repair with cool animation
[ESX] Simple Repair System by akacastro
[ESX] Nitro System
[vRP 0.5] [FREE] Scrap Recycler Job
[FORK][ESX] Engine Repair kit & Tyre Kit | esx_repairkit V3.2
[Release][ESX] Money Truck Robbery's
[PAID] jz-drugs
Different Gun Ammo Clips / Tiered Armour 1 - 4 ((08/02/2021))
[Release] [ESX] Cayo Perico Drug Runs
[PAID] jz-drugs v2 €10
[PAID] [ESX] ReyMarca Fake Plate
[ESX] [Paid] Taco Run
[ESX] Taco Player Run
[ESX] [PAID] Chop Shop
[PAID] Sell drug to npc
[PAID] Advanced system sell drug to npc
[Release] [PAID][ESX] Interactive Airport
Tuna's Truck Job V2 - ESX+QBCore
[Free] ESX,QBCore Player Stuck
Tuna's Truck Job [FREE] [Power Grid Compatible] [ESX]
[PAID] Sell drug to npc [UPDATE]
[RELEASE] Power Plant hit (blackout) by utku
[FREE] AOD_Hunting [ESX] [QBCore]
[paid] advanced drug pack + drug sale to npc
[PAID][QBCORE & ESX] Dealers
Tuna's News Job [ESX+QBCore]
[PAID] VehicleLockPick + MiniGame
Tuna's Narco - QBCore + ESX
7empers ESX Gold panning script!
7empers ESX Gold panning script!
Rebel Bobcat [QB / ESX]
OSP Zones | Advanced Territorial Script
[ESX][PAID] DD-illegaltrades (Moneywash/Blackmarket)
ESX l LRP-Steal (Optimized)
[RELEASE] [ESX] LRP-Farmcyc l farming of shrimp and crabs
[Release] X-Vest, the Ultimate Vest Script for FiveM
[Release][ESX][Disc] X-Hotwire, hotwire script with keys and NPC interactions
Please delete this dont want to maintain anymore
[Release][C#][NOT WORKING] Military Team DeathMatch Mode
[FORK][ESX] Engine Repair kit & Tyre Kit | esx_repairkit V3.2
[Release] [ESX] Car Bomb
[ESX, vRP] Extra Detailed Pacific Standard Bank Heist
[Release] [v1.2] npc_bounty - A highly configurable resource for co-op PvE
[RELEASE] vRP_Repair
[RELEASE] esx_petrolier
Suku_Nitro [Better Than Before]
[ESX] Kypo-ESX-Nos | Usable Car NOS | Car Boost
[FREE] sg-washhands
Miami Dyno Script [Paid Resource]
[Help] A script that adds an armour item to the shops
[RELEASE] MTV_CarManufacturing | ESX [Paid Resoure]
[OUTDATED] esx_firefightermenu | Oxygen-Masks, firefighter helmets and a lot more | German and English
Firefightermenu v2 | FINAL VERSION | [Paid Resource]
[RELEASE] guille_selltonpcs
[RELEASE] [ESX] Bank Truck Robbery | Explode - Collect
[Release] McDonalds Job | A Fast Food Restaurant Job for ESX

any photos?

1 Like

pics would be nice to see

1 Like

Got a picture for you guys for the example I added

Maybe a callback when the progressbar is finished would be nice, also please either upload your files to github or directly to the forums

1 Like

@TheIndra could make this but I made it just stop displaying when complete because thats all I needed for what I made it for. Might add this tomorrow when I wake up and finish school. Will post update here if I do.

github ?

Will get it added now so you can view source code and get from there!

Upload all files to either Github or the forum please. 3rd party upload sites should be reserved if the filesize is larger than the forum and Github allowed filesize, which this clearly is not

Will do in future just wanted to go off to bed so quickly uploaded but im doing that now.

1 Like

Added github link!

Take your time with releases. Next time also read over the rules again just to be sure you’re on the right page. There’s no reason to hurry! Make something good, create a good post and everything.

You probably already have the “make something good” part done :slight_smile:

1 Like

how to add bro

can we get an example of it being used in a script

using it how it should be used at not got it working yet no errors or anything i was using t0sic_loadingbar

before this which worked fine and works just the same way as this

There’s an example in the post

i see that do i just put it in resource folders and thats it? i dont understand the example it just shows a single line of its call

me to help pls

doing the excample just crashed my game trying to get help and saying theres an example in post doesnt help much at all

it should be something like this for the mechanic but it doesnt show the progressbar

		if DoesEntityExist(vehicle) then
			isBusy = true
			TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true)
                exports['progressBars']:startUI(30000, "Reparing")

				SetVehicleUndriveable(vehicle, false)
				SetVehicleEngineOn(vehicle, true, true)

				isBusy = false
1 Like