diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index b571501c..ccdfb584 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -621,9 +621,5 @@ function Core.IsPlayerAdmin(playerSrc) end local xPlayer = ESX.GetPlayerFromId(playerSrc) - if not xPlayer then - return false - end - - return Config.AdminGroups[xPlayer.getGroup()] or false + return xPlayer and Config.AdminGroups[xPlayer.getGroup()] or false end