mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 03:08:52 +00:00
Fix(esx_property): Fix Broken Loop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user