qbcore-framework / qb-garages

Garage System Used With QB-Core :car:
GNU General Public License v3.0
48 stars 260 forks source link

[BUG] Cars that come out of a garage are bugged! #235

Closed TinyDerp closed 2 years ago

TinyDerp commented 2 years ago

Cars that come out of garages are not owned by anyone and are locked. You can take the same car out as much that you want and all of them are locked. Also the customs are wiped.

The car should be owned by me and I should be able to drive it.

Screenshots: Screenshot 2022-07-31 223845 Screenshot 2022-07-31 224040 Screenshot 2022-07-31 224122 Screenshot 2022-07-31 224220 Screenshot 2022-07-31 224324 Screenshot 2022-07-31 224419 Screenshot 2022-07-31 224434

Steps to reproduce the behavior: Go to any of the garages. Park your car in the garage. Take the car out of the garage. Boom, error, car not usable.

When you last updated: Today Are you using custom resource? which ones?: Yes, qb-target and some custom cars, MLO's and jobs. Have you renamed qb- to something custom?: nope

Additional context: The error appears only once. I think that there's a problem with the SQL database.

DisguisedOG commented 2 years ago

Check the physical plate on the vehicle you pull out then check your player database and you'll probably find they are two different plates. I'm dealing with a similar issue but mine breaks between the destruction of a vehicle and being sent to the impound.

TinyDerp commented 2 years ago

Check the physical plate on the vehicle you pull out then check your player database and you'll probably find they are two different plates. I'm dealing with a similar issue but mine breaks between the destruction of a vehicle and being sent to the impound.

Nope, the plate numbers are the same.

Screenshot 2022-08-01 114748 Screenshot 2022-08-01 114810

erikmeyer08 commented 2 years ago

The version that's on Github is all messed up and should of never of been promoted. The issue can be reproduced, all you need to do is have another player stand near the spawn point of the vehicle and the issue occurs.

erikmeyer08 commented 2 years ago

@GhzGarage fixed this in qb-core!

Nerfednijt commented 2 years ago

@erikmeyer08 where can i find this fix ? He doesnt seem to have any garage scripts on his github

GhzGarage commented 2 years ago

He means in the resource qb-core. Just update it