qbcore-framework / qb-garages

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

[BUG] Vehicle Depot #335

Closed MidnightGamingNetwork closed 8 months ago

MidnightGamingNetwork commented 8 months ago

Describe the bug If a players vehicle poofs while they are doing like a job or roleplaying in the area away from vehicle, the vehicle will poof and vehicle can be retrieved till restart. The issues is when you have the auto respawn off the vehicle will not go into the depot. When the server restarts the vehicles will not be in any garage till you turn back on auto respawn back into garage. This bug is a huge issues for roleplay servers. There is also an issues recently were players will randomly not get keys to the vehicle. Only started with the new download of QBCore.

To Reproduce Steps to reproduce the behavior:

  1. Turn Config.AutoRespawn = true to Config.AutoRespawn = false
  2. Purchase a vehicle or do the admin code to give yourself a vehicle.
  3. Once you have the car leave it out or /dv it.
  4. Restart server and you will not find your vehicle at the depot till you turn step 1 back to "true".

Expected behavior The players vehicle will vanish and will never be found at the depot or a garage after restart.

GhzGarage commented 8 months ago

We pushed a fix that gave the car a depot price if it's out on a restart