Indent cleanup

This commit is contained in:
ElPumpo
2019-04-17 11:38:12 +02:00
parent 16a78f4613
commit 3d27e2b0a6
3 changed files with 7 additions and 44 deletions
+3 -7
View File
@@ -1138,7 +1138,7 @@ ESX.ShowInventory = function()
local players = ESX.Game.GetPlayersInArea(GetEntityCoords(playerPed), 3.0)
local foundPlayers = false
local elements = {}
for i=1, #players, 1 do
if players[i] ~= PlayerId() then
foundPlayers = true
@@ -1168,7 +1168,7 @@ ESX.ShowInventory = function()
for i=1, #players, 1 do
if players[i] ~= PlayerId() then
if players[i] == data2.current.player then
foundPlayers = true
nearbyPlayer = players[i]
@@ -1347,20 +1347,16 @@ end)
-- SetTimeout
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local currTime = GetGameTimer()
for i=1, #ESX.TimeoutCallbacks, 1 do
if ESX.TimeoutCallbacks[i] ~= nil then
if ESX.TimeoutCallbacks[i] then
if currTime >= ESX.TimeoutCallbacks[i].time then
ESX.TimeoutCallbacks[i].cb()
ESX.TimeoutCallbacks[i] = nil
end
end
end
end
end)