mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
tweak(esx): Return GetExtendedPlayers with index instead of playerId
This commit is contained in:
@@ -9,7 +9,7 @@ end)
|
||||
|
||||
AddEventHandler('onResourceStart', function(resourceName) -- The resource just restarted so we actually have a fresh copy of ESX.Players from the framework
|
||||
if (GetCurrentResourceName() == resourceName) then
|
||||
for playerId, xPlayer in pairs(ESX.Players) do
|
||||
for _, xPlayer in pairs(ESX.Players) do
|
||||
print( ('%s %s is online with player id %s'):format(xPlayer.job.grade_label, xPlayer.name, playerId) )
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user