mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
refactor(server/functions): ESX.GetPlayers()
it only stayed for backwards compatibility
This commit is contained in:
@@ -216,15 +216,7 @@ function Core.SavePlayers(cb)
|
||||
end
|
||||
end
|
||||
|
||||
function ESX.GetPlayers()
|
||||
local sources = {}
|
||||
|
||||
for k, v in pairs(ESX.Players) do
|
||||
sources[#sources + 1] = k
|
||||
end
|
||||
|
||||
return sources
|
||||
end
|
||||
ESX.GetPlayers = GetPlayers
|
||||
|
||||
function ESX.GetExtendedPlayers(key, val)
|
||||
local xPlayers = {}
|
||||
|
||||
Reference in New Issue
Block a user