# DayZ Central Economy & Loot Editing (types.xml) (/docs/dayz/central-economy)



import { File, Folder, Files } from 'fumadocs-ui/components/files';

DayZ's loot doesn't spawn randomly — it's governed by the **Central Economy (CE)**, a set of XML files inside your mission folder. Editing them lets you increase loot, change item rarity, add dynamic events (helicopter crashes, vehicles), and tune how long items persist. This is the single most powerful way to customize a DayZ server without mods.

Where the Files Live [#where-the-files-live]

The Central Economy files are inside your **active mission** folder. On this egg the missions are:

* `mpmissions/dayzOffline.chernarusplus` (Chernarus)
* `mpmissions/dayzOffline.enoch` (Livonia)
* `mpmissions/dayzOffline.sakhal` (Sakhal / Frostline)

Inside each mission, the core economy files are in `db/`:

<Files>
  <Folder name="mpmissions" defaultOpen>
    <Folder name="dayzOffline.chernarusplus" defaultOpen>
      <Folder name="db" defaultOpen>
        <File name="types.xml" />

        <File name="events.xml" />

        <File name="economy.xml" />

        <File name="globals.xml" />

        <File name="messages.xml" />
      </Folder>

      <File name="cfgeconomycore.xml" />

      <File name="cfgspawnabletypes.xml" />

      <File name="cfgeventspawns.xml" />

      <File name="init.c" />
    </Folder>
  </Folder>
</Files>

> Edit the folder that matches the map you actually run. Editing `chernarusplus` does nothing if your server is running Livonia.

types.xml — The Loot Table [#typesxml--the-loot-table]

`types.xml` defines every loot item's spawn behaviour. Each item is a `<type>` block:

```xml
<type name="M4A1">
    <nominal>15</nominal>
    <lifetime>10800</lifetime>
    <restock>0</restock>
    <min>8</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="Military"/>
    <value name="Tier3"/>
    <value name="Tier4"/>
</type>
```

The attributes that matter most [#the-attributes-that-matter-most]

| Element                 | Meaning                                                                                   |
| ----------------------- | ----------------------------------------------------------------------------------------- |
| `nominal`               | Target number of this item alive on the map. **Raise it to make an item more common.**    |
| `min`                   | The floor — when the count drops below this, the economy queues more to spawn.            |
| `lifetime`              | Seconds an untouched item stays before cleanup (10800 = 3 hours).                         |
| `restock`               | Seconds before the economy tops up toward `nominal` after `min` is hit (`0` = immediate). |
| `quantmin` / `quantmax` | For items with a quantity (ammo, liquids): % range they spawn filled. `-1` = default.     |
| `cost`                  | Spawn priority weighting (higher = more likely when slots are contested).                 |
| `category`              | Loot category (weapons, food, clothes, tools…).                                           |
| `usage`                 | Location tags where it spawns (Military, Police, Medic, Industrial, Farm…).               |
| `value`                 | Loot **tier** (Tier1 near coast → Tier4 deep inland/military).                            |

Increase loot for an item [#increase-loot-for-an-item]

Raise `nominal` and `min` together:

```xml
<nominal>40</nominal>
<min>25</min>
```

Make an item rarer / disappear [#make-an-item-rarer--disappear]

Set both to a low number, or `0` to stop it spawning entirely:

```xml
<nominal>0</nominal>
<min>0</min>
```

> ⚠️ Don't set `nominal` absurdly high across the board — the Central Economy has a **global item budget**. Flooding the map with high nominals can crowd out other loot and hurt performance. Increase selectively.

events.xml — Dynamic Events [#eventsxml--dynamic-events]

`events.xml` controls **dynamic events**: helicopter crashes, police cars, boats, animal herds, infected hordes, and more. Each `<event>` has a `nominal`, `min`/`max`, a `<child>` list of what spawns, and timing (`secmin`/`secmax` cooldowns).

```xml
<event name="StaticHeliCrash">
    <nominal>5</nominal>
    <min>3</min>
    <max>7</max>
    <lifetime>1800</lifetime>
    <restock>0</restock>
    <secmin>1800</secmin>
    <secmax>3600</secmax>
    ...
</event>
```

Raise `nominal`/`max` for **more helicopter crashes**, or lower them to reduce vehicle/event spawns. Spawn locations for many events come from `cfgeventspawns.xml`.

globals.xml — Economy Globals [#globalsxml--economy-globals]

`globals.xml` holds server-wide economy variables — cleanup timers, animal/zombie limits, and switches like `CleanupLifetimeDeadPlayer`. Common tweaks: overall loot respawn behaviour and the max number of active zombies/animals.

cfgeconomycore.xml — Registering Files [#cfgeconomycorexml--registering-files]

`cfgeconomycore.xml` tells the economy which files and **custom CE folders** to load. If you split loot into extra files (common with mods/custom setups), they must be registered here or they're ignored.

Editing Workflow [#editing-workflow]

1. **Stop the server** from the panel Console (never edit CE files while running — changes can be overwritten and persistence can corrupt).
2. Open the file in the panel **File Manager** (or download, edit, re-upload).
3. **Validate your XML** — a single unclosed tag stops the whole economy from loading and can leave your server with no loot. Paste into an XML validator before saving.
4. **Start the server** and check the logs load the economy cleanly.

> Some changes (raising `nominal`) only take full effect after the economy naturally cycles or after a loot wipe. For an immediate reset, wipe the `storage_*` persistence for a fresh economy — see [Persistence & Time](/docs/dayz/persistence-settings).

Related Guides [#related-guides]

* [Server Configuration (serverDZ.cfg)](/docs/dayz/server-config)
* [Persistence & Time](/docs/dayz/persistence-settings)
* [Scheduled Server Messages](/docs/dayz/server-messages)
* [Install Mods](/docs/dayz/mod-setup)
