minimize doesjobexist function

This commit is contained in:
Arctos2win
2024-01-27 15:57:21 +01:00
committed by GitHub
parent 4eab57589f
commit 0b370c70e8
+1 -9
View File
@@ -549,15 +549,7 @@ if not Config.OxInventory then
end
function ESX.DoesJobExist(job, grade)
grade = tostring(grade)
if job and grade then
if ESX.Jobs[job] and ESX.Jobs[job].grades[grade] then
return true
end
end
return false
return (ESX.Jobs[job] and ESX.Jobs[job].grades[tostring(grade)] ~= nil) or false
end
function Core.IsPlayerAdmin(playerId)