Explainer

DayZ cfggameplay.json explained

cfggameplay.json is where DayZ keeps the gameplay rules that used to need mods: unlimited stamina, building anywhere, showing your position on the map, custom starter kits and spawning extra buildings. It works on PlayStation, Xbox and PC. The catch is that DayZ ignores it until you switch it on, which is why so many owners edit it and see nothing change. Here's how to turn it on and what each part does.

  • 4 min read
  • Updated
  • PlayStation, Xbox and PC
cfggameplay.jsonExample
{    "version": 123,    "GeneralData": {        "disableBaseDamage": false    },    "PlayerData": {        "StaminaData": {            "staminaMax": 100.0        }    },    "MapData": {        "displayPlayerPosition": false    }}

Switch the file on first

DayZ only reads cfggameplay.json when enableCfgGameplayFile is on. On Nitrado it's a toggle in Settings, General. Elsewhere, set enableCfgGameplayFile = 1; in serverDZ.cfg. Restart after either.

Once it's on, the file takes over a few settings from serverDZ.cfg: base damage, container damage, the respawn dialog, personal light and night lighting. If those suddenly change after you switch it on, set them in cfggameplay.json instead.

Where the file lives

It sits in the root of your mission folder, next to init.c and the db folder (for example mpmissions, then dayzOffline.chernarusplus). It's JSON, not XML, so every bracket, comma and quote matters. One missing comma makes the whole file invalid. See where DayZ server files live.

GeneralData

Server-wide switches: disableBaseDamage, disableContainerDamage, disableRespawnDialog and disableRespawnInUnconsciousness. Base damage is the one most owners change, usually alongside raid windows. See base damage settings.

PlayerData

Everything about the player's body. StaminaData holds staminaMax, the sprint modifiers and the weight penalty, which is how unlimited stamina works. ShockHandlingData, MovementData and DrowningData tune unconsciousness, turning speed and drowning. disablePersonalLight lives here too.

spawnGearPresetFiles lists the JSON files that give new players their starting gear. That's how starter kits work without scripting.

WorldsData

World-level settings: lightingConfig for night darkness, environmentMinTemps and environmentMaxTemps (twelve values each, January to December, in degrees Celsius), wetnessWeightModifiers, and objectSpawnersArr.

objectSpawnersArr lists JSON files that place extra objects on the map: buildings, walls, wrecks and props. It's the main way console servers add custom areas. See the object spawner guide.

BaseBuildingData

HologramData and ConstructionData hold the checks that decide where kits can be placed and built: collisions, roofs, slopes, height, water, terrain, no-build areas and freezing areas on Sakhal. Turning checks off is how build anywhere works. Turn off only the checks you need, or bases end up floating, clipping into rocks and hiding inside buildings.

disallowedTypesInUnderground lists kits that can't be placed underground. Vanilla blocks fences, flags and watchtowers there.

UIData and MapData

UIData sets use3DMap and the hit indicator: whether it shows, its style, colour and how long it lasts. MapData decides what the in-game map shows: displayPlayerPosition puts a marker on your own position, displayNavInfo shows compass and GPS information, and the ignore ownership options let players use the map without holding one. See show player position on the map.

After a DayZ update

Bohemia adds new options to cfggameplay.json from time to time and raises the version number. An older file keeps working because DayZ uses defaults for anything missing, but you won't get the new options until you add them. After a big update, compare your file with the new vanilla one from your host and copy across any new sections you want.

Edit it safely

Keep the version number your file came with, change one section at a time, and check the JSON before uploading. If the server starts but nothing changed, check enableCfgGameplayFile first. If it won't start, a bracket or comma is almost certainly missing.

Tools for this

Common questions

Why do my cfggameplay.json changes do nothing?

enableCfgGameplayFile is probably off. Turn it on in Nitrado's Settings, General (or serverDZ.cfg) and restart.

Does cfggameplay.json work on console?

Yes. PlayStation and Xbox servers on Nitrado use it exactly like PC, which makes it one of the most useful files for console owners.

Can I delete sections I don't use?

DayZ uses its defaults for anything missing, but it's safer to keep the whole file and change values. That way you always know what the server is using.

Will a broken cfggameplay.json stop my server?

It can. Invalid JSON is the most common reason a server stops starting after a gameplay edit. Check the file in the Gameplay Editor or the XML validator, which also checks JSON.

Is cfggameplay.json the same on every map?

The format is the same. Each map's mission folder has its own copy, so changes on Chernarus don't carry to Livonia or Sakhal.

Run your DayZ server from one place

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