Open ghost opened 4 years ago
btw, the bug happenned again and again until we delete all cars and restart the resource
I also have the problem that the cars double or triple partially park out.
That is look like somethings block the script to delete the car. I will fix it soon.
Do you have fix the bug?
No, I have plan to rewrite this script
Happened the same to me. Do you need helping rewriting?
Did you tried with ESX.Game.DeleteVehicle()?
Edit: I tried, i even try to edit the DeleteVehicle() script but it doesn't matter. Maybe forcing a /dv in every vehicle of the parking when you are out of the zone?
@kasuganosoras
I think i have found the issue:
local tmpModel = GetEntityModel(veh)
it should be
local tmpModel = GetEntityModel(LocalVehicles[i].entity)
Ssometime (it's random) when i go in a parking, vehicles don't despawn but spawn again. All cars are duplicated with that issue. Here is a screenshot of the only error i have (in f8 console)