Describe the bug
An export to remove target option during cornerselling is placed at the wrong line, giving players the ability to sell twice to each NPC.
To Reproduce
Steps to reproduce the behavior:
Turn on cornerselling.
Be approchaed by an NPC.
Accept the offer.
While the progressbar is running, target the NPC again.
Sell again after your sale.
Expected behavior
Target export should be removed right after the sale.
The fix is to move the code up a few lines. At around line 240 There's Wait(650) line, the exports['qb-target']:RemoveZone('sellingPed') should be above this, not under it. I put mine right under the serverevent for cornerselling.
Describe the bug An export to remove target option during cornerselling is placed at the wrong line, giving players the ability to sell twice to each NPC.
To Reproduce Steps to reproduce the behavior:
Expected behavior Target export should be removed right after the sale. The fix is to move the code up a few lines. At around line 240 There's Wait(650) line, the exports['qb-target']:RemoveZone('sellingPed') should be above this, not under it. I put mine right under the serverevent for cornerselling.