Open events.xml
Download events.xml from your mission's db folder and keep a copy. On Nitrado that's mpmissions, your map's mission folder, then db. Each vehicle has its own event, such as VehicleCivilianSedan, VehicleHatchback02, VehicleSedan02, VehicleOffroadHatchback or VehicleTruck01. Boats and newer vehicles have events of their own too.
If you're new to the file, events.xml explained covers what every value means.
Raise nominal, min and max
For each vehicle, raise nominal to the number you want on the map, and raise max with it so the count can actually reach it. Raise min too, so the economy replaces cars that get destroyed.
Spawn positions are limited, so very high numbers stop helping once every spot is used.
- Nominal: how many of that car the economy aims to keep on the map
- Min: below this, replacements start spawning
- Max: the hard ceiling, so keep it at or above nominal
- Restock: the wait in seconds before a replacement may spawn
Check there are enough spawn positions
Where each car can appear is listed in cfgeventspawns.xml, under the same event name. If a car has 10 positions and you set nominal to 20, you still get 10. Doubling the defaults usually stays inside the positions a map already has, which is why it's a popular first step.
Adding positions means giving map coordinates, so check them on a map tool first. A car spawned inside a wall or on a slope tends to be ruined before anyone finds it.
Clear away wrecks
Each vehicle event has a flags line. With remove_damaged switched on, ruined cars are cleared away so the economy can replace them. Without it, wrecks keep counting towards the total and new cars stop appearing.
Make the parts easier to find
Cars are only useful with wheels, spark plugs and batteries. Raise those in types.xml too, or players will find plenty of cars they can't drive.
- Wheels for each model, plus spare tyre repair kits
- Spark plugs for cars and glow plugs for trucks
- Car and truck batteries, radiators and headlight bulbs
Upload and restart
Check the file with the XML validator, upload it and restart. New cars appear as the economy fills the positions, so give it a restart or two before judging the numbers.
Watch performance on a busy evening. Every vehicle is something the server has to track, and dozens of extra cars on a small map can add up.