mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23: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
|
---@param data ProgressProps
|
||||||
---@return boolean?
|
---@return boolean?
|
||||||
function lib.progressBar(data)
|
function lib.progressBar(data)
|
||||||
while progress ~= nil do Wait(100) end
|
while progress ~= nil do Wait(0) end
|
||||||
|
|
||||||
if not interruptProgress(data) then
|
if not interruptProgress(data) then
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
@@ -177,7 +177,7 @@ end
|
|||||||
---@param data ProgressProps
|
---@param data ProgressProps
|
||||||
---@return boolean?
|
---@return boolean?
|
||||||
function lib.progressCircle(data)
|
function lib.progressCircle(data)
|
||||||
while progress ~= nil do Wait(100) end
|
while progress ~= nil do Wait(0) end
|
||||||
|
|
||||||
if not interruptProgress(data) then
|
if not interruptProgress(data) then
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user