Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into better-vehicle-spaw…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
Mycroft-Studios committed Dec 16, 2024
2 parents 00eafee + 617bfb6 commit c32d674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [core]/es_extended/server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c32d674

Please sign in to comment.