Inventory Update
Added serverside iteminfo and consolidated image path. Now returns full nui path in .image
This commit is contained in:
1 parent
5d3a9d1950
commit
bd0074a156
22 files changed
+83
-9
No files matched your search
@@ -44,15 +44,19 @@ end
|
||||
---@param options table
|
||||
---@param cb any
|
||||
---@param qbFormat boolean
|
||||
---@return nil
|
||||
---@return success boolean
|
||||
function ProgressBar.Open(options, cb, qbFormat)
|
||||
if not exports['progressbar'] then return false end
|
||||
|
||||
if not qbFormat then
|
||||
options = convertFromOx(options)
|
||||
end
|
||||
|
||||
exports['progressbar']:Progress(options, cb)
|
||||
local prom = promise.new()
|
||||
exports['progressbar']:Progress(options, function(cancelled)
|
||||
if cb then cb(not cancelled) end
|
||||
prom:resolve(not cancelled)
|
||||
end)
|
||||
return Citizen.Await(prom)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user