Persistent vehicles

Welcome to Persisten vehicles

This is a very popular system for players who want to add realism to their server, so we also mention that it is not dangerous and that this system includes a police impound system for those who leave their vehicles in the middle of the street or in the middle of the road.

You can activate this option in the garage config with a simple step which is to set the boolean to true.

Config.PersistentVehicles = true       -- Configure if the vehicles are persistent on the map or not

Remove vehicles from the map

Our garage system, as you might notice, does not allow you to remove vehicles from the map using the classic dv command, since vehicles are persistent and will return to the map after deletion.

For this reason, we created two exclusive commands for administration, which will allow you to remove a specific car from the map or all player vehicles on the map.

Note that if you kill a player's car, they will go directly to a random impound on your map, based on the type of the vehicle.

Give persistence to new vehicle

For a vehicle to be persistent, it must have been in the garage first, this means that if you buy a car from your dealership, it would not have persistence until you have stored it in the garage first.

To solve this, we created a server-side export, which will be added at the time the vehicle spawns.

Please, if you need help, ask your trusted developer for help.

-- vehicle: netId from vehicle
exports['qs-advancedgarages']:setVehicleToPersistent(vehicle)

Last updated