Merge remote-tracking branch 'upstream/main' into better-vehicle-spawning

This commit is contained in:
Kasey FItton
2024-12-16 21:46:40 +00:00
+2 -2
View File
@@ -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