Merge pull request #1552 from esx-framework/revert-1548-patch-3

Revert "fix(es_extended/server/functions): Core.IsPlayerAdmin returning false"
This commit is contained in:
Kenshin13
2024-12-16 22:45:53 +01:00
committed by GitHub
+2 -2
View File
@@ -610,6 +610,6 @@ function Core.IsPlayerAdmin(playerId)
return true
end
local xPlayer = ESX.Players[tonumber(playerId)]
return xPlayer and Config.AdminGroups[xPlayer.group] or false
local xPlayer = ESX.Players[playerId]
return (xPlayer and Config.AdminGroups[xPlayer.group] and true) or false
end