diff --git a/modules/progressbar/qb-progressbar/client.lua b/modules/progressbar/qb-progressbar/client.lua index 11fb7e4..a276391 100644 --- a/modules/progressbar/qb-progressbar/client.lua +++ b/modules/progressbar/qb-progressbar/client.lua @@ -57,7 +57,7 @@ function ProgressBar.Open(options, cb, qbFormat) end local prom = promise.new() exports['progressbar']:Progress(options, function(cancelled) - if cb then cb(not cancelled) end + if cb then cb(cancelled) end prom:resolve(not cancelled) end) return Citizen.Await(prom)