Is your feature request related to a problem? Please describe.
Currently, qb-policejob only calls for a job check if you are under the "police" job with PlayerData.job.name == "police" which when you want to utilize PlayerData.job.type == "leo" it will throw errors . This part of code is from handling blips.
It also effects the use of qb-target, as you can only use the job = "jobname", param in qb-target and not the type.
Describe the feature you'd like
Full compatiblilty of the job.type function that is built into qbcore to be used in qb-policejob and other jobs such as ambulancejob
Is your feature request related to a problem? Please describe.
Currently, qb-policejob only calls for a job check if you are under the "police" job with
PlayerData.job.name == "police"
which when you want to utilizePlayerData.job.type == "leo"
it will throw errors . This part of code is from handling blips.It also effects the use of qb-target, as you can only use the job = "jobname", param in qb-target and not the type.
Describe the feature you'd like
Full compatiblilty of the
job.type
function that is built into qbcore to be used in qb-policejob and other jobs such as ambulancejob