refactor(Admin Check): refactor admin checking

This commit is contained in:
Thekuca
2023-05-19 14:48:31 +02:00
committed by GitHub
parent bfd0d9ef5e
commit 9399585423
+1 -1
View File
@@ -454,7 +454,7 @@ function Core.IsPlayerAdmin(playerId)
local xPlayer = ESX.Players[playerId]
if xPlayer then
if xPlayer.group == 'admin' then
if Config.AdminGroups[xPlayer.group] then
return true
end
end