DvScriptsSK / qb-sheriffjob

Sheriff job for QBCore
23 stars 11 forks source link

Unable to go on duty #1

Open DonnyFennLive opened 2 years ago

DonnyFennLive commented 2 years ago

When going on duty it auto place you in Off Duty again

DvScriptsSK commented 2 years ago

I will look into it and fix. If you have any other questions you can go to my discord server

DvScriptsSK commented 2 years ago

I see the issue

DonnyFennLive commented 2 years ago

is the job going to be updated with the issue fixed?

DvScriptsSK commented 2 years ago

Yes this week

DonnyFennLive commented 2 years ago

nice

fiesi commented 1 year ago

on duty is not fixed? ;) We have the Problem

DvScriptsSK commented 1 year ago

It was fixed but whole job will be updated

lak1z-azk commented 10 months ago

Seems that this issue still persists :/ any ETA date for fix?

lak1z-azk commented 10 months ago

Seems that I found an issue. There is a duplicating code line for going on duty which just moves back to off duty. So here is what I done to achieve a normal "On Duty":

  1. In client/job.lua there is a duplicating lines image

I have just deleted them.

  1. Then below the "Toggle Duty in an event" i have just deleted one line "onDuty = not onDuty" image in screenshot is visible which line can be deleted.

3.Then I went to main.lua and scrolled down to the 103 line (yes I was sitting before and trying to find an issue why it is going on duty and back to off duty .... ) image

And I have commented 108 and 109 line. As you can see how the commented lines looks like.

Sorry, just wanted to help with the fix for that, as I haven't seen any updates on this script for 2 years.

HumiPen commented 9 months ago

Seems that I found an issue. There is a duplicating code line for going on duty which just moves back to off duty. So here is what I done to achieve a normal "On Duty":

  1. In client/job.lua there is a duplicating lines image

I have just deleted them. 2. Then below the "Toggle Duty in an event" i have just deleted one line "onDuty = not onDuty" image in screenshot is visible which line can be deleted.

3.Then I went to main.lua and scrolled down to the 103 line (yes I was sitting before and trying to find an issue why it is going on duty and back to off duty .... ) image

And I have commented 108 and 109 line. As you can see how the commented lines looks like.

Sorry, just wanted to help with the fix for that, as I haven't seen any updates on this script for 2 years.

Work.