Fixed job issues and dont query sql on xPlayer creation

This commit is contained in:
ElPumpo
2019-03-04 21:21:18 +01:00
parent e976de722b
commit b8d0669b64
3 changed files with 62 additions and 53 deletions
+2
View File
@@ -185,6 +185,8 @@ ESX.CreatePickup = function(type, name, count, label, player)
end
ESX.DoesJobExist = function(job, grade)
grade = tostring(grade)
if job and grade then
if ESX.Jobs[job] and ESX.Jobs[job].grades[grade] then
return true