rohkane / progressbar Goto Github PK
View Code? Open in Web Editor NEWQBCore Progressbar inspired by NoPixel 4.0.
QBCore Progressbar inspired by NoPixel 4.0.
Hey, I currently have the problem that my jim-mechanic Harness isn't working with your progressbar. Its the only Issue I found so I figured maybe you could help me with it. The Progressbar shows up but the Event after it isn't executed. I cant put on my harness and so stuff. I tried using the provided Templates but even with that the complete harness and seatbelt function is completely broken.
function lib.progressBar(data)
while progress ~= nil do Wait(0) end
if not interruptProgress(data) then
playerState.invBusy = true
exports['progressbar']:Progress({
name = "random_task",
duration = data.duration,
label = data.label,
useWhileDead = false,
canCancel = true,
controlDisables = {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = false,
},
}, function(cancelled)
if not cancelled then
-- finished
--SendNUIMessage({
--action = 'progress',
--data = {
--label = data.label,
--duration = data.duration
--duration = -100
--}
--})
progress = nil
playerState.invBusy = false
else
-- cancelled
print("omg")
-- Reset progress whether it's finished or cancelled
progress = false
Citizen.Wait(1000)
progress = nil
playerState.invBusy = false
end
end)
return startProgress(data)
end
end
Originally posted by @rohKane in #1 (comment)
Is there a way to make this work with ox_inventory?
I have tried in every way shape and form to make this work with Qbox framework but no luck. If you could implement it into the ox_lib progress bar even better.
Love u xxx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.