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.
Popular changes, in one place
These are the cfggameplay.json changes owners ask about most, and the guide for each:
- Unlimited or longer stamina: raise
staminaMaxor lower the sprint modifiers. Unlimited stamina - Build anywhere: switch off the placement checks you don't want. Build anywhere
- Raid-proof bases:
disableBaseDamageanddisableContainerDamage. Base damage - Show players on the map:
displayPlayerPosition. Player position on map - Starter kits:
spawnGearPresetFiles. Starter kits - Custom buildings:
objectSpawnersArr. Object spawner - Warmer or colder seasons:
environmentMinTempsandenvironmentMaxTemps
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.