Merge pull request #175 from iSentrie/patch-1

refactor(esx_lscustom/client/main.lua): fixed loop
This commit is contained in:
Mycroft
2022-03-27 23:24:05 +01:00
committed by GitHub
+15 -14
View File
@@ -391,6 +391,21 @@ CreateThread(function()
ESX.UI.Menu.CloseAll()
GetAction({value = 'main'})
-- Prevent Free Tunning Bug
CreateThread(function()
while lsMenuIsShowed do
DisableControlAction(2, 288, true)
DisableControlAction(2, 289, true)
DisableControlAction(2, 170, true)
DisableControlAction(2, 167, true)
DisableControlAction(2, 168, true)
DisableControlAction(2, 23, true)
DisableControlAction(0, 75, true) -- Disable exit vehicle
DisableControlAction(27, 75, true) -- Disable exit vehicle
Wait(0)
end
end)
end
end
end
@@ -399,17 +414,3 @@ CreateThread(function()
Wait(Sleep)
end
end)
-- Prevent Free Tunning Bug
CreateThread(function()
while lsMenuIsShowed do
DisableControlAction(2, 288, true)
DisableControlAction(2, 289, true)
DisableControlAction(2, 170, true)
DisableControlAction(2, 167, true)
DisableControlAction(2, 168, true)
DisableControlAction(2, 23, true)
DisableControlAction(0, 75, true) -- Disable exit vehicle
DisableControlAction(27, 75, true) -- Disable exit vehicle
end
end)