DayZ FriendConsole focused management
en
Server Files

How to Add Attachments and Cargo to Spawned Items

Published 10/29/2026Updated 10/29/2026

Learn how cfgspawnabletypes.xml gives spawned weapons, clothing and containers starting attachments, cargo, quantity and condition.

Looking for DayZ console bot setup guides?

See our feature pages for DayZ auto ban, and DayZ economy bot.

cfgspawnabletypes.xml

cfgspawnabletypes.xml describes what a supported entity can start with when Central Economy creates it. It is keyed by the entity classname, not by the event name. The same classname can therefore use these attachment, cargo or damage rules wherever the compatible CE system spawns it.

A real attachment example

The supplied file uses this shape for a plate carrier variant:

<spawnabletypes>
    <type  name="PlateCarrierVest_Black">
        <damage  min="0.1"  max="0.6" />
        <attachments  chance="0.85">
            <item  name="PlateCarrierHolster_Black"  chance="1.00" />
        </attachments>
        <attachments  chance="0.85">
            <item  name="PlateCarrierPouches_Black"  chance="1.00" />
        </attachments>
    </type>
</spawnabletypes>

The outer attachments chance controls whether that attachment group is attempted. The child item chance controls the item inside that group. Separate groups allow a spawned item to receive separate attachment rolls.

Cargo and damage

Cargo uses the same classname-keyed structure:

<type  name="CivilianSedan">
    <damage  min="0.0"  max="0.32" />
    <cargo  chance="0.50">
        <item  name="DuctTape"  chance="0.35" />
    </cargo>
</type>

The supplied files also contain hoarder entries for persistent storage objects such as tents, barrels, crates and underground stashes. An empty <hoarder /> is a deliberate structural entry; it is not an attachment list.

Use exact classnames already present in the game build. This file cannot add an attachment slot that the entity does not support.

Editable on console: when the host exposes the mission file and the corresponding CE loader is supported.

Source basis: supplied cfgspawnabletypes.xml files and classname relationships in events and types data.

What to use this file for

Use this file when the event already spawns the right entity but its starting contents need changing. It is the right place for a supported vehicle's starting cargo, a supported entity's attachments, or a controlled damage range. It is not the right place to change the event's population or the building where an item is found.

The outer chance belongs to the attachment or cargo group. The nested item's chance belongs to that particular item. This gives you two separate controls: whether the group is attempted and whether an item in that group is selected. Keep the same entity classname under <type> that the event or CE definition actually spawns.

A safe workflow

Start by copying the complete existing <type> block for the entity. Change one attachment or cargo item at a time, using classnames present in the supplied item database. If an item does not fit the entity's slot or cargo rules, the XML can still be valid while the game rejects the attachment. Test a fresh spawn rather than an entity that was already created before the change.

Console Bot Quick Links

Explore DayZ console-focused pages for PlayStation, Xbox and Switch 2 server owners:

Attachments

(0)
No attachments for this page yet.