qbcore-framework/qb-garages

[BUG] pulling out vehicle with players around has random chance of no upgrades

youremeh opened this issue · 5 comments

Describe the bug
Modifying and storing a vehicle in qb-garages and storing/pulling out the vehicle while nobody is around works fine. It's when someone is nearby that if you do this there is a random chance that it spawns with none of the upgrades (the livery will stay, but you have to put it away, and pull it back out again)

To Reproduce
Steps to reproduce the behavior:

  1. Modify vehicle at mechanic shop
  2. Store it in garage
  3. Pull it out of garage with players nearby
  4. Have random chance with no modifications applied

Expected behavior
The vehicle modifications should stay applied no matter what or who's nearby

Screenshots
https://medal.tv/games/gta-v/clips/1SMasxwzUlgF1V/d1337QIYpEa9
https://medal.tv/games/gta-v/clips/1SMhm2XE5nctrV/d1337RwSyVAi

Questions (please complete the following information):

  • When you last updated:
    Yesterday

  • Are you using custom resource? which ones?
    Fresh install of qb-core, qb-mechanicjob, and qb-garages (along with the SQL that comes with them)

  • Have you renamed qb- to something custom?
    No

Additional context
N/A

any updates on how to fix this issue?

any updates on how to fix this issue?

Nothing on it yet. Best I've come up with is a shitty band-aid fix to help somewhat slow the issue from happening by adding 2 Wait's surrounding the SetVehicleProperties in qb-garages:client:takeOutGarage

Citizen.Await(CheckPlate(veh, vehPlate))
Wait(250)
QBCore.Functions.SetVehicleProperties(veh, properties)
Wait(250)
exports[Config.FuelResource]:SetFuel(veh, data.stats.fuel)

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

Still having the issue!!!!!!!!!

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