mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
refactor(Admin Check): refactor admin checking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user