Implemented ESX.DoesJobExist()

This commit is contained in:
ElPumpo
2019-02-28 12:57:09 +01:00
parent 611bf76aaa
commit 5ab6123b44
4 changed files with 64 additions and 27 deletions
+10
View File
@@ -186,3 +186,13 @@ ESX.CreatePickup = function(type, name, count, label, player)
TriggerClientEvent('esx:pickup', -1, pickupId, label, player)
ESX.PickupId = pickupId
end
ESX.DoesJobExist = function(job, grade)
if job and grade then
if ESX.Jobs[job] and ESX.Jobs[job].grades[grade] then
return true
end
end
return false
end