From 89c0668985422099e7701f416f1113a04643aefb Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 5 May 2023 14:53:29 +1000 Subject: [PATCH] refactor(client/progress): reduce Wait in progress queue --- resource/interface/client/progress.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index a8a7c3bf3..9b4baf20e 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -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({