sleekst / Qb-PoliceJob-MultiDepartment-Support

This is an editted version of QB-policejob to work with multiple departments.
8 stars 2 forks source link

Adding new Departments issue #3

Open OhhhBeans opened 1 year ago

OhhhBeans commented 1 year ago

After adding new Departments to the qbcore jobs lua they don't have access to armory or any of the police stashes etc. Regular Police job still works normal. But adding new Departments is where it stops working.

StatePolice

['state'] = { label = 'San Andreas State Troopers', type = "leo", defaultDuty = true, offDutyPay = true, grades = { ['0'] = { name = 'Cadet', payment = 50 }, ['1'] = { name = 'Trooper', payment = 75 }, ['2'] = { name = 'Senior Trooper', payment = 100 }, ['3'] = { name = 'Master Trooper', payment = 125 }, ['4'] = { name = 'Corporal', payment = 150 }, ['5'] = { name = 'Sergeant', payment = 175 }, ['6'] = { name = 'Staff Sergeant', payment = 200 }, ['7'] = { name = 'Lieutenant', payment = 225 }, ['8'] = { name = 'Captain', payment = 250 }, ['9'] = { name = 'Major', payment = 275 }, ['10'] = { name = 'Commander', payment = 300 }, ['11'] = { name = 'Dep. Commissioner', payment = 350 }, ['12'] = { name = 'Commissioner', isboss = true, payment = 375 }, }, },

Sheriffs

['sheriff'] = { label = 'Blaine County Sheriffs Department', type = "leo", defaultDuty = true, offDutyPay = true, grades = { ['0'] = { name = 'Cadet', payment = 50 }, ['1'] = { name = 'Deputy', payment = 75 }, ['2'] = { name = 'Senior Deputy', payment = 100 }, ['3'] = { name = 'MCU', payment = 125 }, ['4'] = { name = 'Corporal', payment = 150 }, ['5'] = { name = 'Sergeant', payment = 175 }, ['6'] = { name = 'Command Sergeant', payment = 200 }, ['7'] = { name = 'Lieutenant', payment = 225 }, ['8'] = { name = 'Captain', payment = 250 }, ['9'] = { name = 'Major', payment = 275 }, ['10'] = { name = 'Commander', payment = 300 }, ['11'] = { name = 'Assistant Sheriff', payment = 325 }, ['12'] = { name = 'Under-Sheriff', payment = 350 }, ['13'] = { name = 'Sheriff', isboss = true, payment = 375 }, }, }, image

Tonybell9904 commented 2 months ago

I’m having the same issues did you ever find the fix I’m trying to be able to allow other jobs to use the fingerprint scan

OhhhBeans commented 2 months ago

I did not i ended up switching to a different script that offered more. If you'd like the link i'll leave it here since there isn't any support for this. https://github.com/Sanriku-Gaming/qb-policejob