DayZ cfggameplay.json Generator

Stamina, base building, the map and GPS, car and bike wheels, lighting and code locks, from toggles. Pick your map and the form starts on that map's stock 1.30 cfggameplay.json; change nothing and you get the stock file back.

Updated Dec 2026Built for DayZ 1.30 · each map's stock file · every key traced in the 1.30 server scripts
Before anything else
  • Read only withenableCfgGameplayFile = 1; in serverDZ.cfg
  • Stock serverDZ.cfgleaves that line out, so the file is ignored
  • Goes inmpmissions/dayzOffline.<map>/
  • Switching it onthese values replace serverDZ.cfg's personal light, lighting, base and container damage, and respawn dialog

Map

0 / 0 changed

Each map ships its own cfggameplay.json: different temperatures, lighting, and on Nasdara code-lock and sandstorm blocks. Pick yours and the form loads that file; anything you already changed stays changed.

Base damage, decay & respawn

0 / 0 changed

GeneralData. The raiding switches live here, and while the file is on they replace the serverDZ.cfg lines of the same name.

true makes fences, watchtowers and everything else players build take no damage, which ends raiding. While this file is on, serverDZ.cfg's disableBaseDamage line stops counting and this one decides.

true makes tents, barrels and crates take no damage, so nobody shoots or smashes their way into the loot. Replaces serverDZ.cfg's line while this file is on.

true stops built parts from decaying. A part only decays if the game says it can, and a Nasdara sandstorm speeds it up by half. No stock file has this key; it's written only when you turn it on.

true takes the choice away after death: players come back as a random character instead of picking their custom one. Replaces serverDZ.cfg's line while this file is on.

true hides the Respawn button while a player is knocked out, so they wait to wake up or die. No bailing out to a fresh spawn mid-fight.

Personal light & spawn gear

0 / 0 changed

PlayerData, the top of it. Stamina, shock, movement and drowning are their own sections below.

true removes the faint glow that lets players see a little at night. The stock serverDZ.cfg turns it off, but the stock files for Chernarus, Livonia and Sakhal set false here, so switching this file on brings the glow back unless you set it true. Nasdara's file already has it true.

Spawn-gear preset files, one per line, each a path from the mission folder. New characters get a random preset, weighted by each preset's spawnWeight. Leave it empty and they spawn with the mission's usual starting gear. No stock file has this key.

Stamina

0 / 0 changed

PlayerData.StaminaData. The modifiers are multipliers on the game's own drain: 0.5 halves it, 2 doubles it, 0 makes that action free.

100

The full stamina bar. Bigger means longer sprints before a player is gassed. 0 fails the server's own check: it logs "Validation failed … for StaminaData" and puts this back to 100.

6000

Grams a player can carry before the stamina bar starts shrinking. 6000 is 6 kg; raise it and heavy loadouts stop costing stamina.

1.75

How much of the stamina bar each kilo over that limit takes away. Lower it to let players haul more without getting winded.

5

The floor: no load shrinks the stamina bar below this. A sprint also needs this plus 15 before it will start.

1

Drain while sprinting upright (Erc is erect). 0.5 halves it and 0 makes sprinting free; jumping, climbing and melee still cost.

1

Drain while sprinting crouched. Same scale as the upright one.

1

Drain while swimming fast.

1

Drain while climbing a ladder fast.

1

Cost of light and heavy melee attacks, and of dodging.

1

Cost of jumping, vaulting and climbing over things.

1

Drain while holding your breath to steady your aim. Lower it and snipers hold longer.

Shock & knock-outs

0 / 0 changed

PlayerData.ShockHandlingData. Shock is the damage that knocks a player out; these set how fast it comes back.

5

Shock recovered per second while awake. Higher and players shake off hits sooner.

1

Shock recovered per second while knocked out, which is how fast a player comes round.

true lets the game change how fast a player comes round after being knocked out by a gunshot; false makes every knock-out recover at the plain unconscious rate above.

Movement

0 / 0 changed

PlayerData.MovementData. Small numbers, big feel: these decide how heavy a character is to steer.

0.1

Seconds a jogging player takes to settle into a new direction. Lower is snappier.

0.15

How long a turn is smoothed over while jogging, despite the name. Lower turns faster.

0.45

Seconds to get from a run into a full sprint.

0.3

Seconds a sprinting player takes to settle into a new direction.

0.15

Turn smoothing while sprinting. Lower turns faster.

true makes a player low on stamina move heavier and slower to react; false takes that away.

Drowning

0 / 0 changed

PlayerData.DrowningData.

10

Nothing in the 1.30 scripts reads this one, so changing it does nothing. Every stock file carries it, so it stays in the output.

10

Health lost per second while drowning.

10

Shock lost per second while drowning, so how fast a drowning player blacks out.

Weapon obstruction

0 / 0 changed

PlayerData.WeaponObstructionData. What a gun does when its muzzle runs into something. Prone always lifts, whatever is set here.

Against walls, trees, rocks and other things that don't move. 1, the stock value, pushes the gun back first and then lifts it; 0 skips straight to lifting; 2 keeps it pushed back and never lifts.

The same, against things that move under physics, such as vehicles.

World: lighting, temperature, weight

0 / 0 changed

WorldsData. The temperatures are where the four maps differ most; switching the map above loads its own.

Which lighting the world loads. Sakhal's stock file uses 2 and Nasdara's 3. While this file is on it replaces serverDZ.cfg's lightingConfig, which only knows 0 and 1.

Nasdara's bunker broadcasts, set up in the mission's cfgbunkerbroadcast.json, which only Nasdara ships. Nasdara's stock file has it true; with no cfggameplay.json the scripts leave it off, so a stock Nasdara server never runs them.

Object-spawner files, one per line, each a path from the mission folder. Each places its objects when the server starts. A raw model path only works from the game's plants and rocks folders; everything else goes in by class name.

0/12

The coldest it gets in each month, in °C, January first. The server only uses these when all twelve are there.

Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
0/12

The warmest it gets in each month, in °C. Same rule: all twelve or none.

Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
0/5

How much heavier an item gets as it soaks up water: 2 means a drenched item weighs double. It takes exactly five values. On the server we booted, four logged "Validation failed … for WorldData" and the server used its own.

Dry
Damp
Wet
Soaked
Drenched

Restricted-area files, one per line, each a path from the mission folder. Sakhal ships pra/warheadstorage.json. While this file is on, this list is the whole list: take that line out and the warhead storage restriction goes with it.

Base building: placement

0 / 0 changed

BaseBuildingData.HologramData. The checks on the ghost preview you see while placing something; true switches a check off.

true lets players place an item where it overlaps other objects.

true lets players place an item on top of another player.

true lets an item go up where it would poke through a roof or ceiling.

true skips the check that the spot can take the item at all. The scripts run this one on the player's side only, never on the server.

true lets items be placed overlapping a garden plot.

true lets items go down on slopes too steep for them.

true allows placement where the game normally says no.

true skips the check on how far above or below the player an item is going.

true lets items be placed under water.

true lets items be placed sunk into the ground.

true lets players dig and build garden plots where it's 5 °C or colder. Chernarus's and Livonia's stock files say disableColdAreaBuildingCheck instead, a name nothing in 1.30 reads, so on those maps the cold check is on. Set it here and the key the game reads gets written.

Item classes players can't place underground, one per line; anything that inherits from a listed class is blocked too. Stock: FenceKit, TerritoryFlagKit, WatchtowerKit, so no bases in the bunkers.

Base building: construction

0 / 0 changed

BaseBuildingData.ConstructionData. Building parts onto something already placed, and what happens when it comes down.

true skips the room-above check when building a watchtower level or its roof.

true lets a part be built even when something is in its way.

Nothing in the 1.30 scripts reads this one, so changing it does nothing. Every stock file carries it, so it stays in the output.

true leaves anything sitting on a part where it is when that part is dismantled or destroyed, instead of letting it drop.

true stops a collapsing structure from dropping its attachments and the items stored in it.

true stops a collapsing structure from giving back its building materials.

3D map & hit indicator

0 / 0 changed

UIData and its HitIndicationData. The hit indicator values only apply with the override on.

true shows the map as the paper map in the character's hands instead of the full-screen map.

true makes every player see the hit indicator set below. false and the game uses its own: static, splash, 2 seconds.

1 stays put where the hit came from on screen, 2 follows the direction as you turn, 0 shows no indicator.

The indicator's shape.

The colour as 0xAARRGGBB: opacity, then red, green, blue, in hex. The stock 0xffbb0a1e is a solid dark red.

2

Seconds the indicator stays up.

0.2

When it starts fading, as a share of that time, 0 to 1: 0.2 is a fifth of the way in.

10

Random error in degrees, 0 to 180, so the indicator doesn't point straight at the shooter. 0 is dead accurate.

true plays the screen effect when a player takes a hit. Every stock file has it true, and with no cfggameplay.json the scripts leave it off, so switching the file on turns it on.

Map & GPS

0 / 0 changed

MapData. Whether players need the actual items to use the map.

true lets players open the map with its key without carrying a map.

true treats every player as carrying a GPS and a compass while the map is open.

true marks a player's own position on the map when they have a GPS, or for everyone with Ignore Nav Items Ownership on.

true shows the GPS and compass readings on the map for players who have them; false hides them.

Vehicles & boats

0 / 0 changed

VehicleData. The wheel switches arrived with 1.30, alongside its motorbikes; the motorbike and car decay lines with the 30 November server build.

1

How fast an unattended boat loses health. It only decays with no player within 300 m, flipped boats go faster and boats near a territory flag slower. 0 stops it, 2 doubles it.

2

How fast an unattended motorbike's engine wears down, by the boat rules: nothing while a player is within 300 m, faster flipped, slower near a territory flag. Every stock file says 2; 0 stops it. A file from before this line existed leaves motorbikes at 1.

0

The same for cars and trucks. Stock is 0, so a parked car never wears down; anything above 0 makes an abandoned one's engine decay like a boat's.

false stops anyone taking a wheel off a car, which ends wheel theft.

false makes wheels fitted to a car take no damage.

The same for motorbikes: false and nobody takes a wheel off one.

false makes wheels fitted to a motorbike take no damage.

Code locks

0 / 0 changed

ExternalLockData: the guess limits on digital code locks, which spawn on every map. Only Nasdara's stock file has the block; the others leave it out and the server uses these same values, so it's written only when you change one.

3

Wrong codes in a row before the lock shuts itself for the protection time.

1

Wrong codes for every lockout after the first. Stock is 1: one more miss and it shuts again.

30

Seconds each lockout lasts. 0 or less falls back to 30.

3600

Seconds after a lockout before the lock forgets and goes back to the first count. 0 or less falls back to 3600, an hour.

Sandstorms

0 / 0 changed

SandstormData. Nasdara's weather is the only one that reads it.

1

How often sandstorms roll in: 0 never, 1 normal, 2 twice as often.

Advanced / Raw JSON

A JSON object merged into the output last, for keys this form has no field for (a mod's, say). Import a file and anything in it the form doesn't cover lands here, so the output is still your whole file.

About the DayZ cfggameplay.json Generator

cfggameplay.json sits in each mission folder and holds the gameplay values serverDZ.cfg has no line for. The server reads it only with enableCfgGameplayFile = 1; in serverDZ.cfg; build that file with the DayZ server config generator, which has the switch. Every default on this page comes from the stock config files the 1.30 server ships (build 26871320), and every key was checked against 1.30.

What switching cfggameplay.json on changes

SettingFile offStock file on
Personal lightserverDZ.cfg's line (stock: off)On for Chernarus, Livonia, Sakhal; off for Nasdara
LightingserverDZ.cfg's lightingConfig (stock 0)0 for Chernarus and Livonia, 2 for Sakhal, 3 for Nasdara
Base and container damage, respawn dialogserverDZ.cfg's linesThe file's values (stock: all false)
Hit screen effectOffOn
Nasdara bunker broadcastsOffOn
Sakhal's warhead storage restrictionOnOn, from the list in the file

A number left out of the file keeps the server's built-in value, and so does a whole block: we booted 1.30 with staminaMax deleted, then all of StaminaData, and it took both without a complaint. A list is different. Delete wetnessWeightModifiers and the server logs a validation failure for WorldData, so this generator never drops a list your map's file has.

Keys that do nothing on 1.30

FAQ

Why is my DayZ server ignoring cfggameplay.json?

The server only reads it when serverDZ.cfg has enableCfgGameplayFile = 1; and the stock serverDZ.cfg doesn't have that line, so out of the box the file is skipped and the server uses its built-in values. The file also has to sit in the mission folder your Missions template loads, for example mpmissions/dayzOffline.chernarusplus/cfggameplay.json.

What changes when I turn cfggameplay.json on?

Five serverDZ.cfg lines stop counting and the file's values replace them: disablePersonalLight, lightingConfig, disableBaseDamage, disableContainerDamage and disableRespawnDialog. The stock serverDZ.cfg turns the personal light off, but the stock cfggameplay.json for Chernarus, Livonia and Sakhal sets it back on. The hit screen effect also comes on (every stock file has it true), and on Nasdara the bunker broadcasts only run with the file on.

What happens if cfggameplay.json has a typo?

The server still starts, so look in its script log. A syntax slip such as a stray comma logs JSON ERROR … Cannot load data from "$mission:cfggameplay.json" with the reason (for a doubled comma: Missing a name for object member). A value the server rejects, such as a wetnessWeightModifiers list without five numbers or a staminaMax of 0, logs "Validation failed during loading of 'cfggameplay.json'" and names the block, which goes back to built-in values.

How do I lower stamina drain on a DayZ server?

In cfggameplay.json, lower sprintStaminaModifierErc (sprinting upright) and sprintStaminaModifierCro (sprinting crouched): 0.5 halves the drain and 0 makes sprinting free. Raise staminaWeightLimitThreshold (grams carried before the stamina bar shrinks, 6000 stock) so heavy loadouts stop costing stamina. Jumping, climbing and melee have their own modifiers.

How do I turn off base raiding in DayZ?

Set GeneralData.disableBaseDamage to true (fences, watchtowers and other built parts take no damage) and disableContainerDamage to true (tents, barrels and crates take no damage). With cfggameplay.json on, these replace the serverDZ.cfg lines of the same name.

How do I give players custom spawn gear?

List one or more spawn-gear preset JSON files in PlayerData.spawnGearPresetFiles, with paths from the mission folder. Each new character gets a random preset, weighted by the preset's spawnWeight. With the list empty, players spawn with the mission's usual starting gear.

Why do Chernarus and Livonia have disableColdAreaBuildingCheck?

Their stock files carry that name, but nothing in the DayZ 1.30 scripts reads it. The key the game reads is disableColdAreaPlacementCheck (Sakhal and Nasdara ship it), and it controls digging and building garden plots where it is 5 °C or colder. Set disableColdAreaPlacementCheck to true to allow them.

Related tools

When DayZ patches, we pull the new server and diff these files again. Spot a value that's drifted? Hit Report an issue above.