From 89eb52f5f6dba8bba81238f07c439e0c164eb354 Mon Sep 17 00:00:00 2001 From: Mycroft Date: Tue, 29 Mar 2022 16:30:38 +0100 Subject: [PATCH] Fix(esx_property): Fix Broken Loop --- [esx_addons]/esx_property/client/main.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/[esx_addons]/esx_property/client/main.lua b/[esx_addons]/esx_property/client/main.lua index 66f1df7d..185416bd 100644 --- a/[esx_addons]/esx_property/client/main.lua +++ b/[esx_addons]/esx_property/client/main.lua @@ -867,8 +867,10 @@ end) -- Key controls CreateThread(function() - while CurrentAction do - Wait(0) + while true do + local Sleep = 1500 + if CurrentAction then + Sleep = 0 ESX.ShowHelpNotification(CurrentActionMsg) if IsControlJustReleased(0, 38) then @@ -888,5 +890,6 @@ CreateThread(function() CurrentAction = nil end + Wait(Sleep) end end)