mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Implemented ESX.DoesJobExist()
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user