qbcore-framework / qb-ambulancejob

Ambulance Job, Hospital System & Death System For QB-Core :man_health_worker: :woman_health_worker:
GNU General Public License v3.0
34 stars 287 forks source link

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

Closed rapeurtueur closed 5 months ago

rapeurtueur commented 10 months ago

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 commented 10 months ago

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

rapeurtueur commented 10 months ago

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 €

SinisterDevelopment commented 8 months ago

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

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

FortifiedGrizzly commented 8 months ago

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'}

github-actions[bot] commented 6 months ago

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