> ## Documentation Index
> Fetch the complete documentation index at: https://docs.czautoz.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Vehicles Core

> The shared systems behind every paid CZ Autoz vehicle mod: the Vehicle Admin Panel, the add-on items, looks, water, refuelling and the HUD. What it contains, how to install it and which vehicles get what.

**CZ Autoz Vehicles Core** (`@CZAutozVehiclesCore`) holds the systems that every paid CZ Autoz vehicle mod shares: the Vehicle Admin Panel and its settings, the add-on items, damage and dirt looks, water physics, refuelling, the driver HUD and the vehicle cannon.

> [!WARNING]
>
> **Every paid vehicle mod needs Vehicles Core.** Tiers, packs and single-vehicle mods all depend on it. Load it on the server **and** on every client. Everyone who owns a tier, pack or paid single car gets Core as its own download. The free Golf MK4, GT-R 2015 and License Plates mods don't need it.

## What's in it

> [card] [Vehicle Admin Panel & settings](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md)
>
> Fleet tools, zones, stations, logs, staff roles and every server setting, changed in game with no restart.

> [card] [Add-ons](https://docs.czautoz.co.uk/vehicles/core/addons.md)
>
> Satnav, dashcam, GPS tracker and receiver, alarm, car keys, nitrous, ECU tune kit, sports exhaust, roof box, lightbar, spike strip, jump cables, radar gun, car glass repair kit, seatbelts and cruise control.

> [card] [Underglow](https://docs.czautoz.co.uk/vehicles/addons/underglow.md)
>
> Coloured lights under the vehicle, with eight colours and a rainbow mode.

> [card] [Damage, dirt, washing & repairs](https://docs.czautoz.co.uk/vehicles/core/looks.md)
>
> Visible damage, dust, sand and mud, washing in rain, water or with a rag, blowtorch repairs and glass repairs.

> [card] [Water & fuel](https://docs.czautoz.co.uk/vehicles/core/water-and-fuel.md)
>
> Floating and sinking in deep water, spray in shallow water, fuel stations, our own gas pump and the HEMTT Refueler pump.

> [card] [HUD & player settings](https://docs.czautoz.co.uk/vehicles/core/hud-and-player-settings.md)
>
> Three HUD styles, the warning lights and each player's own vehicle settings menu.

> [card] [Vehicle cannon](https://docs.czautoz.co.uk/vehicles/core/cannon.md)
>
> The BTR-4E's turret cannon: who fires it, aiming, ammo, shell size and shell damage.

## Installing it

**1. Download Core**

Download **Vehicles Core** from [czautoz.co.uk/downloads](https://czautoz.co.uk/downloads) together with your vehicle mods. It ships two PBOs:

* `Callatic_Vehicles_Core_Scripts.pbo`: the shared code
* `Callatic_Vehicles_Core.pbo`: the add-on items, sounds, effects and the damage and dirt materials

Both are needed.

**2. Load it on the server and on clients**

Put both PBOs in your server mod pack, or load `@CZAutozVehiclesCore` as its own mod in `-mod=`. Either way it has to be loaded on the server **and** on every client, wherever the vehicles are. Sign both PBOs with your server key like your other mods. See [Setup & Installation](https://docs.czautoz.co.uk/vehicles/install.md).

**3. Don't load a separate underglow mod**

The underglow is part of Vehicles Core. Make sure your server and launch parameters don't load a separate `Callatic_Vehicles_Underglow` mod.

> [!WARNING]
>
> Loading `Callatic_Vehicles_Underglow` together with Vehicles Core stops the scripts from compiling, because both contain the same classes.

**4. Merge the Info files**

Core's `Info\` folder holds a README, a `types.xml` and three trader files:

| File | What to do with it |
| - | - |
| `types.xml` | **Merge** its `<type>` entries into your existing `mpmissions\<your map>\db\types.xml`. It has the sixteen add-on items (see [Adding the items to your economy](https://docs.czautoz.co.uk/vehicles/core/addons.md#adding-the-items-to-your-economy)) |
| `Trader_DrJones.txt` | **Merge** the `<Category>` block into your existing `TraderConfig.txt` (Trader by Dr Jones) |
| `Trader_TraderPlus.json` | **Merge** the category into the `"TraderCategories"` array of your existing `TraderPlusPriceConfig.json` |
| `Trader_ExpansionMarket.json` | **Add** it as a new category file in your profile's `ExpansionMod\Market\` folder |

Use one trader file, for the trader system you run. The prices are the same in all three. Never overwrite your own files with these: open your file and paste the new entries in.

**5. Start the server**

The first start creates `profiles\CZAutoz\Cars\` with the files listed below. Everything after that is done in game from the [Vehicle Admin Panel](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md).

> [!NOTE]
>
> **Core has no whitelist entry of its own.** It runs on a server that is whitelisted for at least one of your CZ Autoz vehicle mods (a tier, a pack or a single car). If it isn't, an admin who opens the panel sees: *"CZ Autoz Vehicles Core isn't active on this server: it needs at least one whitelisted CZ Autoz car tier, pack or car."* See [Whitelisting](https://docs.czautoz.co.uk/vehicles/whitelisting.md).

## Server files

The server writes these files itself, in its profile folder. Change settings from the admin panel rather than by hand where you can.

| File | What it holds |
| - | - |
| `profiles\CZAutoz\Cars\AllCars.json` | Every setting for all CZ Autoz vehicles, with its value, including the whole-server settings. Grouped in the CONFIG tab's sections. Edit any value by hand or in the admin panel |
| `profiles\CZAutoz\Cars\Packs\<pack or mod>.json` | One tier, pack or single-car mod, for example `Tier_2.json` or `CZAudiRS6.json`. Every setting you can set for it, in the same sections: a value overrides `AllCars.json`, and `"inherit"` follows it |
| `profiles\CZAutoz\Cars\Vehicles\<vehicle>.json` | One vehicle, for example `AudiRS6_base.json`, created when you first set something for it. Every setting you can set for it: a value overrides, and `"inherit"` follows its pack file, then `AllCars.json` |
| `profiles\CZAutoz\Cars\Zones.json` | Speed-limit, no-damage and no-vehicle zones |
| `profiles\CZAutoz\Cars\Presets.json` | The admin panel's spawn presets |
| `profiles\CZAutoz\Cars\permissions_admins_config.json` | Who can open the admin panel, their role, and what each role may do |
| `profiles\CZAutoz\Cars\Logs\Admin_YYYY-MM-DD.log` | Everything admins do in the panel |
| `profiles\CZAutoz\Cars\Logs\Cars_YYYY-MM-DD.log` | Vehicle history: engine starts, drivers, crashes, destroyed vehicles, cannon shots, and drivers who keep breaking a limit |
| `profiles\CZAutoz\Cars\Logs\Dashcam_YYYY-MM-DD.log` | Dashcam events, when that log is switched on |
| `profiles\CZAutoz\Cars\Data\Odometer.json` | Each vehicle's [odometer](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#signals-and-odometer) reading and when it was last serviced |
| `profiles\CZAutoz\Cars\Data\Dirt.json` | How dirty each vehicle is, so dirt is kept through restarts |
| `profiles\CZAutoz\Cars\Data\CarLocks.json` | Which cars are locked with a [car key](https://docs.czautoz.co.uk/vehicles/core/addons.md#car-keys), and their key owners |
| `profiles\CZAutoz\Cars\Data\LastDrivers.json` | Each vehicle's last driver (for pairing keys, alarms and receivers) |
| `profiles\CZAutoz\Cars\Data\Stations.json` | The nitrous stations and gas pumps placed from the admin panel. See [Stations](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#stations) |
| `profiles\CZAutoz\Cars\Backups\` | Core's copies of the files above, in the same sub-folders: the last good copy of each one (`<name>.previous.json`), a copy of any file it couldn't read (`<name>.unreadable.json`) and, for the settings files, the copy the server saved last (`<name>.lastsaved.json`). Nothing is kept beside the files themselves |

A pack or mod file is created for every tier, pack or single mod you run. The `Logs` folder appears when the first line is written. The three settings files share one layout: a `Version`, a `Scope` and a `Note` line, then one section for each CONFIG tab heading. How they look and stack is explained on the [admin panel page](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#config).

```json Packs/Tier_1.json theme={null}
{
    "Version": 3,
    "Scope": "Pack: Tier_1",
    "Note": "Settings for this pack. A setting shown as inherit follows AllCars.json: (...)",
    "Damage": {
        "CrashDamage": 1.5,
        "CrashInjuries": "inherit",
        ...
    },
    ...
}
```

* **Old logs are cleared for you.** At server start, CZ daily logs (admin, car history and dashcam) older than **Keep CZ logs for (days, 0 = forever)** are deleted, 30 days by default. `0` keeps every log
* **Data for cars that are gone is cleared for you.** A car that is deleted, despawned or stored by a garage or trader mod leaves its entry in the `Data` files. Five minutes after the server starts, and every hour after, Core removes the entries of cars that haven't been in the world for **30 days** (`Odometer.json`, `Dirt.json`, `LastDrivers.json`) or **60 days** (`CarLocks.json`). A car taken out of a garage within that time keeps its odometer, lock and keys
* **Updating keeps your settings.** Settings files from an older Vehicles Core load and upgrade by themselves at the first start: new settings are added at their default, a value still at an old default moves to the new one, and every value you chose is kept. See [Files Core creates for you](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#files-core-creates-for-you)
* **A cut-short save can't lose your settings.** If a save is cut short (a crash, the server being killed, a full disk), the server loads the last good copy of that settings file, or of `Zones.json`, on the next start. Every copy Core keeps (the last good copy of each file, a copy of a file it couldn't read) is in one folder, `profiles\CZAutoz\Cars\Backups`, never beside your files. See [The Backups folder](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#the-backups-folder)

Two small files live on **players' own PCs**, not on the server:

| File | What it holds |
| - | - |
| `CZAutoz_CarPrefs.json` | That player's choices from the **My vehicle settings** menu (key `O`). See [HUD & player settings](https://docs.czautoz.co.uk/vehicles/core/hud-and-player-settings.md) |
| `CZAutoz_CarPanel.json` | An admin's own panel colours, UI size and start tab |
| `CZAutoz_PanelPos.json` | Where the admin panel was last dropped, shared by the vehicle and helicopter admin panels |

## Default keys

Players can change every key in **Options → Controls**, under **CZ Autoz Vehicles Core**. The **CONTROLS & HELP** button in My vehicle settings lists them with the keys you have set.

| Key | What it does | Who |
| - | - | - |
| `Left Shift` + `F10` | Vehicle Admin Panel | Admins |
| `O` | My vehicle settings and Controls & help | Anyone seated in a CZ Autoz vehicle (or another car or motorbike that gets Core features) |
| `N` | Satnav: show or hide map | Any seat, satnav fitted and engine running |
| `Left Ctrl` + `N` | Satnav: set destination | Any seat, satnav fitted and engine running |
| `Numpad +` / `Numpad -` | Satnav: zoom in / zoom out, while the map is shown | Any seat |
| `B` | Seatbelt: buckle or unbuckle | Any seat |
| `K` | Cruise control: on or off | Driver |
| `T` (hold) | Nitrous boost | Driver |
| `I` | Light bar: lights on or off | Driver |
| `P` | Light bar: siren on or off | Driver |
| `J` / `Left Shift` + `J` | Underglow: on or off / next colour | Driver |
| `Left` / `Right` arrow | Turn signal left / right | Driver |
| `Y` | Hazard lights on or off | Driver |
| `Left Shift` + `O` | Drive mode: next (Eco, Comfort, Sport, Off-road) | Driver of a CZ Autoz vehicle, when drive modes are on |
| `U` | Car alarm: arm or disarm (within 25 m) | The alarm's owner, on foot |
| `Left Shift` + `U` | Car alarm: find my car (within 500 m) | The alarm's owner, on foot |
| `Left Shift` + `K` | Car key: lock or unlock (within 15 m) | A player carrying the car's key, on foot |
| `Right mouse button` | Vehicle cannon: sight on or off | The BTR-4E's gunner, see [Vehicle cannon](https://docs.czautoz.co.uk/vehicles/core/cannon.md) |
| `Left mouse button` | Vehicle cannon: fire (through the sight when the gunner is the driver) | The BTR-4E's gunner |
| `V` | Vehicle cannon: fire mode (Single, Burst, Auto) | The BTR-4E's gunner |
| `R` (hold) | Vehicle cannon: change the ammo box (when the box in the gun isn't full) | The BTR-4E's gunner |

The add-on keys do nothing while a menu is open.

## Which vehicles get what

### Paid CZ Autoz vehicles

The 41 vehicles in the tiers, packs and paid single mods get everything on these pages: the admin panel settings, zones, damage and dirt looks, water physics, refuelling at fuel stations, the CZ HUD and the **My vehicle settings** menu, seatbelts and cruise control, turn signals, the odometer and servicing, driver assists, car keys, and slots for the satnav, dashcam, GPS tracker and alarm. The nitrous kit, ECU tune kit and sports exhaust fit every car except the [military and heavy-work vehicles](https://docs.czautoz.co.uk/vehicles/core/addons.md#military-and-heavy-vehicles), which never take them.

The **roof box**, **lightbar** and **underglow** slots are on some vehicles only. The lists are on the [Add-ons](https://docs.czautoz.co.uk/vehicles/core/addons.md#roof-box) and [Underglow](https://docs.czautoz.co.uk/vehicles/addons/underglow.md#which-vehicles) pages.

### Free Golf MK4 and GT-R 2015

When Core is loaded and active on your server, it counts these two as CZ Autoz vehicles: they follow the admin panel's vehicle settings and zones, show up in the fleet tools, get the CZ HUD, the **My vehicle settings** menu, seatbelts and cruise control, and each gets its own settings file (`CZVolkswagenGolfMK4.json` and `CZNissanGTR2015.json` in the `Packs` folder).

They have all ten add-on slots, the same as a paid car — satnav, dashcam, tracker, alarm, nitrous, tune kit, sports exhaust, underglow, roof box and lightbar. Add-ons go in their slots like on any CZ car (see [Add-ons](https://docs.czautoz.co.uk/vehicles/core/addons.md#which-vehicles-have-the-slots)).

### Vanilla cars and motorbikes

Core adds no slots to vanilla or other mods' vehicles. With **Core features on other mods' cars** on (the default), vanilla cars and motorbikes, and other mods' cars and motorbikes, get:

* **water physics**, and the **water spray** on cars
* the **CZ HUD**, the **My vehicle settings** menu, **seatbelts**, **cruise control** and **turn signals**
* **add-ons fitted with Install** (see [Add-ons](https://docs.czautoz.co.uk/vehicles/core/addons.md#which-vehicles-have-the-slots)): the ECU tune kit, sports exhaust, nitrous kit, underglow, tracker, alarm, **satnav and dashcam** on cars; the tune kit, exhaust and underglow on motorbikes. The satnav and dashcam go into the vehicle's cargo and you use them from the seat with the on-screen controls; there is no item to see in the cockpit
* **fuel pumps**: the refuel action at a fuel pump works on cars and motorbikes, as long as the vehicle's model has the normal refuel point (the one a fuel can uses). If it hasn't, the action doesn't show
* the **odometer**, with the service reminder light and the oil change you can do yourself, on cars. Engine wear stays on CZ Autoz vehicles only; Core doesn't change other mods' engines
* **parking sensors** (reverse beeps, heard by everyone in the car) and the **blind-spot light** (a side warning light for the driver), on cars
* **car keys** on cars, while car keys are switched on
* **battery updates** on cars. DayZ 1.30 never charges or runs down a motorbike battery, so this doesn't apply to motorbikes
* the **damage settings** on cars: **Crash damage (x)**, **Crash injuries to the crew (x)**, **Bullet damage (x)**, **Melee damage (x)** and **Explosion damage (x)** at their **All vehicles** values, and **no-damage zones**

The in-game help for **Core features on other mods' cars** says the same. **No-vehicle zones** cover them whatever this setting says. Every other Core setting (driving limits, looks, headlights, speed zones and so on) applies to CZ Autoz vehicles only. Per-car balance settings, driving assists and dirt are not included. A tune kit and sports exhaust give these vehicles the same pops, bangs, flames and blow-off as a CZ car; diesel work vehicles and anything over 3 tonnes stay silent, and flames need an exhaust point in the model. Whether a given mod's vehicles float or pop depends on how that mod is built, so test it on your server. If a modded vehicle behaves strangely with Core (it floats, sinks, jitters or fights its own controls), add part of its class name to **Other mods' vehicles to leave alone** in the admin panel (CONFIG, **Other mods' cars**) and restart, and Core leaves it completely alone.

### Boats and aircraft

Boats, aircraft and the CZ Autoz helicopters never get water physics, tune kit effects, underglow or add-ons from Core. Boats, jet skis and hovercraft from other mods that are built like cars, and any vehicle with no wheels, are recognised and left alone too. The HEMTT Refueler's pump can refuel CZ Autoz helicopters, see [Water & fuel](https://docs.czautoz.co.uk/vehicles/core/water-and-fuel.md#hemtt-refueler).

### Removing a mod

Removing the Core mod deletes the add-on items from vehicles and players on the next start, like any mod's items; the vehicles themselves and their saves are untouched. Removing a car mod deletes those cars with everything in their cargo, fitted add-ons included.

## Version and updates

Vehicles Core has its own version number: it is **v1.5**. The car tiers, packs and paid single mods are **v3.6**. The free cars have their own numbers: the Golf MK4 is **v2.3** and the GT-R 2015 is **v2.3**.

Shortly after start-up, the server checks the CZ Autoz website for the released version of **every CZ Autoz vehicle mod it runs and of Vehicles Core**. You hear about updates in three places:

1. **The server script log.** Core prints `[CZAutoz_CZCore] UPDATE AVAILABLE: v… is released -- this server runs v…`, or `CZ Autoz Vehicles Core v1.5 -- this version is the latest.` Each vehicle mod prints its own `UPDATE AVAILABLE` or "latest" line too.
2. **An on-screen notice for admins.** About **20 seconds** after a vehicle admin (anyone on the admin list) joins, they get one notice with a car icon, titled **CZ Autoz Vehicles**, shown for 12 seconds, for example: *"Update available: Tier 2 v3.6 (this server runs v3.5)."* Each admin gets it once per server run: reconnecting before the next restart doesn't show it again. It only appears when something newer has been released.
3. **The admin panel.** The **SETTINGS** tab's About area lists every CZ Autoz mod the server runs with its version, and the same *"Update available: …"* line. See [About](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#about).

If the website can't be reached, nothing is shown. The check never changes anything on the server.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.