Step-by-step guide · 9 steps

How to add custom buildings with DayZ Object Spawner

Object Spawner lets you place buildings, walls, wrecks and props anywhere on the map from a JSON file, with no mods. It's how console servers get custom trader areas, arenas and new points of interest.

  • 3 min read
  • Updated
  • PlayStation, Xbox and PC
custom/trader.jsonExample
{    "Objects": [        {            "name": "Land_Container_1Bo",            "pos": [6542.1, 6.2, 2441.8],            "ypr": [90.0, 0.0, 0.0]        }    ]}
Step 1

Switch on cfggameplay.json

Object Spawner is loaded through cfggameplay.json, so enableCfgGameplayFile must be on in your Nitrado settings.

Step 2

Create the JSON file

Each object needs a classname, a position and a rotation. Map editors export these files for you. Put the file in a custom folder inside your mission folder.

Step 3

List it in cfggameplay.json

Add the file's path to objectSpawnersArr in WorldsData. You can list several files.

Step 4

Check and restart

Validate every file with the JSON validator. A single missing comma stops the objects loading. Then restart.

Step 5

What you can build with it

Anything that exists in the base game as a placeable object: buildings, walls, wrecks, containers, rocks, trees and props. Common uses on console servers:

  • A safe zone or trader area at a crossroads, with walls and containers
  • An arena or a PvP event area, fenced off for the weekend
  • Extra military points of interest so loot isn't all in the same few bases
  • Bridges, ramps and roadblocks that change how players move around the map
Step 6

Get positions right

pos is the object's position in metres: x across the map, y height and z up the map. ypr is yaw, pitch and roll in degrees, so 90 in the first value turns it a quarter turn. Most people place objects in a map editor and export the file rather than typing numbers by hand.

Height is the part that goes wrong. An object a metre too low sinks into the ground, and one too high floats. If you edit positions by hand, change them in small steps and check in game.

Step 7

Keep files small and named

Use one file per area, such as trader.json and arena.json, so you can switch one off without touching the others. Very large files are slow to edit and hard to check. The JSON Splitter breaks a big export into smaller files by size or map area.

Step 8

Watch performance and loot

Every object is something the server has to load and players' consoles have to draw. A few hundred objects is fine. Many thousands in one place can make that area stutter. Objects added this way don't come with loot spawn points of their own, so to make a new building useful, place containers or plan a trader there.

Step 9

Test on a quiet restart

Add new buildings at a quiet time, then walk the area yourself. Check players can't get stuck in walls, that doors open, and that nothing floats above the ground.

Tools for this

Common questions

Does Object Spawner work on PS5 and Xbox?

Yes. It's part of the base game, loaded through cfggameplay.json, so it works on console servers.

Where do I get custom JSON files?

Map editing tools export Object Spawner files, and many communities share them. Check any file with the validator first.

Why aren't my objects showing?

Check enableCfgGameplayFile is on, the path in objectSpawnersArr is exactly right, the JSON is valid, and you've restarted.

Can I remove buildings that are already on the map?

Object Spawner adds objects. It doesn't remove buildings that are part of the map itself.

Do I need to wipe the server to add objects?

No. Upload the files, list them in objectSpawnersArr and restart. The objects appear without affecting players or bases.

How many objects can I spawn?

There's no fixed limit, but every object adds load. A few hundred is fine on most servers. Thousands can hurt performance, especially on consoles.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.