Skip to content

Commit

Permalink
Merge pull request #1552 from esx-framework/revert-1548-patch-3
Browse files Browse the repository at this point in the history
Revert "fix(es_extended/server/functions): Core.IsPlayerAdmin returning false"
  • Loading branch information
Kenshiin13 authored Dec 16, 2024
2 parents d22c5b9 + ddf43c0 commit 617bfb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [core]/es_extended/server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 617bfb6

Please sign in to comment.