mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
Merge remote-tracking branch 'upstream/main' into better-vehicle-spawning
This commit is contained in:
@@ -612,6 +612,6 @@ function Core.IsPlayerAdmin(playerId)
|
||||
return true
|
||||
end
|
||||
|
||||
local xPlayer = ESX.Players[tonumber(playerId)]
|
||||
return xPlayer and Config.AdminGroups[xPlayer.group] or false
|
||||
local xPlayer = ESX.Players[playerId]
|
||||
return (xPlayer and Config.AdminGroups[xPlayer.group] and true) or false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user