qb-garages icon indicating copy to clipboard operation
qb-garages copied to clipboard

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

Open youremeh opened this issue 1 year ago • 4 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

youremeh avatar Feb 02 '24 01:02 youremeh

any updates on how to fix this issue?

ararobo1 avatar Feb 07 '24 00:02 ararobo1

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)

youremeh avatar Feb 07 '24 02:02 youremeh

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

github-actions[bot] avatar Apr 07 '24 15:04 github-actions[bot]

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

Craziebird avatar Apr 09 '24 18:04 Craziebird

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

github-actions[bot] avatar Jun 10 '24 15:06 github-actions[bot]