fix(es_extended/server/functions): Core.IsPlayerAdmin returning false

This commit is contained in:
LivedBackwardss
2024-12-15 15:03:20 -08:00
committed by GitHub
parent 0cac6f5163
commit bc1fc8bcff
+2 -2
View File
@@ -610,6 +610,6 @@ function Core.IsPlayerAdmin(playerId)
return true
end
local xPlayer = ESX.Players[playerId]
return (xPlayer and Config.AdminGroups[xPlayer.group] and true) or false
local xPlayer = ESX.Players[tonumber(playerId)]
return xPlayer and Config.AdminGroups[xPlayer.group] or false
end