Fix(esx_property): Fix Broken Loop

This commit is contained in:
Mycroft
2022-03-29 16:30:38 +01:00
parent abb18fe4a9
commit 89eb52f5f6
+5 -2
View File
@@ -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)