Closed CptNoHand closed 2 years ago
Just decrease the distance of the BoxZone of duty zone .
The problem is, even if i'm technically out of the zone, i can still toggle duty for a while.--Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 11.09.22, 05:14 schrieb Manav Singh @.***>:
Just decrease the distance of the BoxZone of duty zone . —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Make sure the length and width of box zone is small , and distance is also like 1 or 1.5 , ypu will be good to go
The problem is, even if i'm technically out of the zone, i can still toggle duty for a while.
Do you still face this problem or is it solved already ?
Still happening. I made the zone smaller, but that isn't the problem. As soon as you walk too close past it and it comes up, the next time you press "E" you toggle it.
@CptNoHand This can be fixed by changing the following line: https://github.com/qbcore-framework/qb-policejob/blob/main/client/job.lua#L821
From:
inDuty = false
dutylisten = false
I'll get a PR raised.
Describe the bug We don't use Target atm and DrawText for the duty location shows as inteded, but you can move 10 or more meters away and when you press E und again you again toggle duty.
Steps to reproduce the behavior:
Expected behavior To not toggle after drawtext disappears
Questions (please complete the following information):
qb-
to something custom? no