mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
Update functions.lua
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user