qb progressbar returns opposite of bridge standard (ox)
This commit is contained in:
1 parent
503154a69c
commit
fc8da1d528
1 file changed
+1
-1
@@ -57,7 +57,7 @@ function ProgressBar.Open(options, cb, qbFormat)
|
|||||||
end
|
end
|
||||||
local prom = promise.new()
|
local prom = promise.new()
|
||||||
exports['progressbar']:Progress(options, function(cancelled)
|
exports['progressbar']:Progress(options, function(cancelled)
|
||||||
if cb then cb(not cancelled) end
|
if cb then cb(cancelled) end
|
||||||
prom:resolve(not cancelled)
|
prom:resolve(not cancelled)
|
||||||
end)
|
end)
|
||||||
return Citizen.Await(prom)
|
return Citizen.Await(prom)
|
||||||
|
|||||||
Reference in new issue
Block a user