The problem of disappearing vehicles

I have a problem with the server, which is that the vehicle disappears when the player exits the server or moves away from it a long distance. I have tried many solutions, but unfortunately I have not found any solution. Can any of you help me?

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Spawning vehicles server sided already makes a huge difference with vehicle persistence. However that’s still not 100% guaranteed and there are some minor problems with disappearing vehicles.

As far as I’m aware, ESX and QB already spawn vehicles server side in their newest versions (not 100% sure on that).

For everything else, you will need a script that manages “disappearing” vehicles and respawns them if necessary. There are several (free and paid) scripts like that already (just look for “parking” in the release section).

I personally offer a paid one if you want to take a look: AdvancedParking

for qbcore, the server will try to send vehicles to the impound when the player has left (can be immediate, or can take some time and distance). it does this to save space in the memory pool.

Problem 1 : the vehicle advancedparking script is working well; however, there is an issue. When I exit the server and reconnect, I have to wait 30 seconds for the vehicles to load. Is it possible to change this duration or speed up the vehicle appearance when a person reconnects to the server?

Problem 2 : “When I store the vehicle in the garage or it gets deleted, it automatically respawns again! I need it to not respawn again and disappear until it is taken out of the garage.”

regarding Problem 2 - Could be a Citizen.Wait() that is set to high. Or could be an issue of teleporting to the last location you left it. (needs the time to render a vehicle, especially if the vehicle is a streamed addon)

Problem 1: Normally respawning should only take up to 5 seconds plus the time for the model to load. If you have unoptimized vehicle models this could be the case that it takes so long. Otherwise I would need more information and it would probably be better if you joined our support dc for much faster support :slight_smile:

Problem 2 is explained in the documentation Installation | Documentation
It is an easy fix and now even has a video attached :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.