fix(esx): Loop SavePlayers as intended

FML
This commit is contained in:
Linden
2021-09-09 23:18:19 +10:00
parent cae7d8e7fd
commit 11d3c2384e
+4 -2
View File
@@ -20,8 +20,10 @@ end
local function StartDBSync()
Citizen.CreateThread(function()
Citizen.Wait(10 * 60 * 1000)
ESX.SavePlayers()
while true do
Citizen.Wait(10 * 60 * 1000)
ESX.SavePlayers()
end
end)
end