qb-ambulancejob icon indicating copy to clipboard operation
qb-ambulancejob copied to clipboard

[BUG] Need to pay 2 times to respawn after a death

Open rapeurtueur opened this issue 1 year ago • 5 comments

Hello , when we are dead and the cooldown is finish, we can press a button for respawn and pay... When you press the button you are tp on the hospital we need to pay 2 times to respawn after a death.

Steps to reproduce the behavior: Go die Wait the timer Respawn

Normaly we just need to pay one time alright ?

image image At this moment 2000€ are removed from the player

And after to quit the bed we pay again 2000€

rapeurtueur avatar Jan 11 '24 08:01 rapeurtueur

First time: image Seconds time when we quit the bed: image

rapeurtueur avatar Jan 11 '24 08:01 rapeurtueur

And I forgot to say the script don't check if we have the money then we can do action without cash like I have -3875 €

rapeurtueur avatar Jan 11 '24 10:01 rapeurtueur

have you tried to replace the script when a newer version?

are you using any 3rd party scripts that interact with this one?

SinisterDevelopment avatar Feb 26 '24 21:02 SinisterDevelopment

https://github.com/qbcore-framework/qb-ambulancejob/pull/326 < this fixes the double check in. and the cash going into minus, Is a qb-core setting.

head over to qb-core // config.lua line 12 (on the latest version) QBConfig.Money.DontAllowMinus = { 'cash', 'crypto'}

FortifiedGrizzly avatar Mar 05 '24 16:03 FortifiedGrizzly

This issue has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar May 05 '24 15:05 github-actions[bot]