Many game rules in DayZ are set in the file cfggameplay.json: stamina, base building, the map and more. It's located at mpmissions/dayzOffline.chernarusplus/cfggameplay.json.
Important: switch it on first
Without this switch the server ignores the file. In the Files tab, open serverDZ.cfg and add this line at the end:
enableCfgGameplayFile = 1;
The line is kept across restarts.
Popular settings
Stop the server, open cfggameplay.json, change values, save, start the server.
| Setting | Section | Effect |
|---|---|---|
staminaMax | PlayerData → StaminaData | maximum stamina (default 100.0, e.g. 150.0) |
staminaWeightLimitThreshold | PlayerData → StaminaData | from which weight (grams) stamina suffers |
displayPlayerPosition | MapData | true shows your own position on the map |
use3DMap | UIData | true = map as 3D view |
disableBaseDamage | GeneralData | true = bases can't be damaged |
disableIsCollidingBBoxCheck etc. | BaseBuildingData → HologramData | true loosens placement rules when building |
Good to know
- Commas and quotation marks must be exactly right. A single missing comma makes the file invalid – download it first so you have a backup.
- Write decimal values with a dot (
150.0, not150,0). - Some settings like third person, crosshair or time acceleration are easier to set in the Startup variables tab – see Connecting and setting up a DayZ server.