qbcore-framework / qb-policejob

Police Job & Evidence System For QB-Core :police_officer: :policewoman:
GNU General Public License v3.0
71 stars 378 forks source link

[SUGGESTION] Full utilization of PlayerData.job.type == "leo" #375

Closed menkzy closed 1 year ago

menkzy commented 2 years ago

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

tom-osborne commented 2 years ago

https://github.com/qbcore-framework/qb-policejob/pull/369

i-kulgu commented 1 year ago

434

github-actions[bot] commented 1 year ago

This issue has had 60 days of inactivity & will close within 7 days