tom-osborne / qb-speedcameras

A simple, optimised and configurable speed camera script.
55 stars 7 forks source link

ignoredjobs are not working #10

Closed underdogminecraft closed 1 year ago

underdogminecraft commented 1 year ago

ignoredjobs are not working

tom-osborne commented 1 year ago

Can you elaborate please?

Thanks

underdogminecraft commented 1 year ago

yes ignored jobs are police and ambulance but its not ignoring these jobs police officers and ems are getting fined as well Screenshot 2023-03-28 233355

no errors in f8 console

tom-osborne commented 1 year ago

Thanks for the info.

Is this happening while the police/ambulance are on duty? Could you check that for me?

underdogminecraft commented 1 year ago

both on duty and off duty

tom-osborne commented 1 year ago

both on duty and off duty

Okay, so I just tested on my test server and it seems to work as intended. Would you be willing to go into a Discord VC to troubleshoot further?

underdogminecraft commented 1 year ago

not possible right now that means something is not going through

underdogminecraft commented 1 year ago

i have to use job names not job labels right because job name is police and its label se Law Enforcement

tom-osborne commented 1 year ago

Yes or there is a specific set of circumstances happening that the script is not accounting for.

Do you have anything modified with regards to your jobs? Perhaps a multi department policejob or something?

tom-osborne commented 1 year ago

i have to use job names not job labels right because job name is police and its label se Law Enforcement

Yes, it is checking your job name. You can see the line of code here: https://github.com/tom-osborne/qb-speedcameras/blob/main/client/main.lua#L45

if playerJob.name == job and playerJob.onduty then return true end
tom-osborne commented 1 year ago

@underdogminecraft did you get this resolved?

underdogminecraft commented 1 year ago

thanks for asking but unfortunately not

tom-osborne commented 1 year ago

Not enough information provided to resolve this issue.

@underdogminecraft please contact me on Discord if you require further support for this issue. Stan#1969