mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
refactor(client/progress): reduce Wait in progress queue
This commit is contained in:
@@ -159,7 +159,7 @@ end
|
||||
---@param data ProgressProps
|
||||
---@return boolean?
|
||||
function lib.progressBar(data)
|
||||
while progress ~= nil do Wait(100) end
|
||||
while progress ~= nil do Wait(0) end
|
||||
|
||||
if not interruptProgress(data) then
|
||||
SendNUIMessage({
|
||||
@@ -177,7 +177,7 @@ end
|
||||
---@param data ProgressProps
|
||||
---@return boolean?
|
||||
function lib.progressCircle(data)
|
||||
while progress ~= nil do Wait(100) end
|
||||
while progress ~= nil do Wait(0) end
|
||||
|
||||
if not interruptProgress(data) then
|
||||
SendNUIMessage({
|
||||
|
||||
Reference in New Issue
Block a user