LukeWasTakenn / luke_garages

Super lightweight FiveM resource that adds garages and impounds for the ESX Legacy framework
GNU General Public License v3.0
33 stars 37 forks source link

Can take car from garage multiple times #73

Closed malikbambini closed 2 years ago

malikbambini commented 2 years ago

I find issue in latest update.

Script doesnt recognize u take out car from garage and u can take same car multiple times.

LukeWasTakenn commented 2 years ago

Any repro steps for this? Cause I'm not getting this issue.

Also maybe it's just your stored column not changing for some reason?

malikbambini commented 2 years ago

artifact 5303 gamebuild 2545

i don't have any errors in tx admin.

stored column changing only if i put car to garage (from 0 to 1), otherwise not.

https://streamable.com/r321eg

Zrzut ekranu (130)

LukeWasTakenn commented 2 years ago

Right I think I see the issue:

Can you try changing this line: https://github.com/LukeWasTakenn/luke_garages/blob/438bfb60702ecff9fdc5af78abee2431f7487c6e/client/client.lua#L229

to this:

TriggerServerEvent('luke_garages:ChangeStored', value.plate, false, nil)

And let me know if that fixes it for you?

malikbambini commented 2 years ago

Yep. That solved problem.

Thank you!

LukeWasTakenn commented 2 years ago

Cool I'll patch it.