mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Indent cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user