Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ESX.Game.GetPlayers = function()
- local maxPlayers = Config.MaxPlayers
- local players = {}
- local players = {}
- for i=0, maxPlayers, 1 do
- local ped = GetPlayerPed(i)
- for _,player in ipairs(GetActivePlayers()) do
- local ped = GetPlayerPed(player)
- if DoesEntityExist(ped) then
- table.insert(players, i)
- table.insert(players, player)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement