Fixed loop

This commit is contained in:
iSentrie
2022-03-27 14:33:43 +03:00
committed by GitHub
parent d9f17c4994
commit 65213f2c16
+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)