fix(es_extended): remove admin fallback for superadmin group

This commit is contained in:
Kenshin13
2025-10-21 18:26:23 +02:00
parent a18f1eb9da
commit ca3b8e5046
2 changed files with 3 additions and 14 deletions
+1 -10
View File
@@ -271,16 +271,7 @@ function loadESXPlayer(identifier, playerId, isNew)
end
-- Group
if result.group then
if result.group == "superadmin" then
userData.group = "admin"
print("[^3WARNING^7] ^5Superadmin^7 detected, setting group to ^5admin^7")
else
userData.group = result.group
end
else
userData.group = "user"
end
userData.group = result.group or "user"
-- Loadout
if not Config.CustomInventory then
@@ -510,11 +510,9 @@ ESX.RegisterCommand(
if not args.playerId then
args.playerId = xPlayer.source
end
if args.group == "superadmin" then
args.group = "admin"
print("[^3WARNING^7] ^5Superadmin^7 detected, setting group to ^5admin^7")
end
args.playerId.setGroup(args.group)
if Config.AdminLogging then
ESX.DiscordLogFields("UserActions", "/setgroup Triggered!", "pink", {
{ name = "Player", value = xPlayer and xPlayer.name or "Server Console", inline = true },