mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 01:13:55 +00:00
refactor(client/progress): reduce Wait in progress queue
This commit is contained in:
1 parent
878763867a
commit
89c0668985
1 file changed
+2
-2
@@ -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