🚨 Revert players command to old method

This commit is contained in:
Gellipapa
2023-09-04 22:45:51 +02:00
parent 53f8eb1fb4
commit ebc22cc8e1
+4 -5
View File
@@ -575,10 +575,9 @@ end, false)
ESX.RegisterCommand('players', "admin", function()
local xPlayers = ESX.GetExtendedPlayers() -- Returns all xPlayers
local count = 0
for _, xPlayer in pairs(xPlayers) do
count += 1
print(('^5%s^2 online player(s)^0'):format(#xPlayers))
for i = 1, #(xPlayers) do
local xPlayer = xPlayers[i]
print(('^1[^2ID: ^5%s^0 | ^2Name : ^5%s^0 | ^2Group : ^5%s^0 | ^2Identifier : ^5%s^1]^0\n'):format(xPlayer.source, xPlayer.getName(), xPlayer.getGroup(), xPlayer.identifier))
end
print(('^5%s^2 online player(s)^0'):format(count))
end
end, true)