refactor(server/functions): Return ESX.Players directly, no need to loop

This commit is contained in:
Linden
2021-06-02 18:08:32 +10:00
committed by GitHub
parent 74f01944f1
commit ca6462ad6a
+1 -7
View File
@@ -234,13 +234,7 @@ ESX.GetPlayers = function()
end
ESX.GetExtendedPlayers = function()
local xPlayers = {}
for k,v in pairs(ESX.Players) do
xPlayers[k] = v
end
return xPlayers
return ESX.Players
end
ESX.GetPlayerFromId = function(source)