mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
refactor(server/functions): Return ESX.Players directly, no need to loop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user