Ruined cars are removed
Vehicle events in events.xml carry a remove_damaged flag, which is on for cars in vanilla. When a car is ruined, usually because the engine was destroyed, the economy cleans it up and can spawn a fresh one somewhere else. Replacing parts doesn't save a ruined car.
Engines are ruined by crashes, by driving with no oil or coolant until the engine fails, by explosions and by gunfire. A car that hits a tree at speed can be gone at the next cleanup.
Water and stuck cars
Driving into deep water ruins a car. So can a car that gets stuck in a rock or under a building and is damaged trying to get out. Parking on bridges and steep slopes is risky too: players regularly report losing cars parked in awkward spots.
Restarts and glitched positions
When a server restarts, every car is placed back where it was saved. A car parked very close to a wall, inside a garage or touching another object can be placed slightly into it, take damage and be destroyed. Bohemia's own feedback tracker notes restarts can move vehicles into objects, which destroys them.
Encourage players to park in open space, away from walls and other cars, especially before a scheduled restart.
Crashes and rollbacks
DayZ saves the world regularly, not every second. If the server crashes, it loads the last save, so a car may jump back to where it was earlier or appear to vanish because it was found after the last save. This looks like a despawn but is a rollback. If several players lose things at once, check whether the server crashed. See why a DayZ server keeps crashing.
Too few cars on the map
Sometimes the complaint isn't that cars vanish but that there are hardly any. Each car type has a nominal and max in events.xml, and positions in cfgeventspawns.xml. In vanilla Chernarus, the civilian sedan event has a nominal of 8. If players hoard cars in bases, new ones won't spawn until the count drops. See how to add more cars.
Cars that spawn missing parts
Cars spawn with a random set of parts, set by chances in cfgspawnabletypes.xml. That's why a found car often needs wheels, a battery or a radiator. Raise the chances for parts you want cars to have, and players spend less time searching. See cfgspawnabletypes.xml explained.
Help players keep their cars
A few habits save most cars:
- Park on flat, open ground, away from walls, trees and other cars
- Keep oil, coolant and a spare wheel, and repair the engine before it's ruined
- Avoid driving into deep water or across steep slopes
- Get out and park before a scheduled restart, rather than driving through it
Settings that keep more cars around
For a car-friendly server:
- Raise nominal for the vehicle events you want more of, and add spawn positions
- Make cars spawn with more parts in
cfgspawnabletypes.xml - Add more spare parts to the loot economy in
types.xml - Schedule restarts at quiet times and warn players to park in the open
- Keep restarts regular, so the server isn't killed mid-save by a crash