Close off part of the map: draw boxes, and players who enter one are moved to the nearest safe position. Build a player restricted area file for cfggameplay.json on the map, with the heights estimated from Bohemia's buildings nearby, for Xbox, PlayStation and PC servers with no mods.
Heights are estimated from Bohemia's buildings nearby: .
| Size X | Height | Size Z | Yaw | X | Height | Z | |
|---|---|---|---|---|---|---|---|
| X | Height | Z | |
|---|---|---|---|
In cfggameplay.json, under WorldsData: . Already listing other areas? Add this path to the same list.
How player restricted areas work
A player restricted area file is a small JSON file in the mission folder that cfggameplay.json lists under WorldsData.playerRestrictedAreaFiles. It has an areaName, one or more PRABoxes and a list of safePositions3D. A player inside any of the boxes is moved to the nearest safe position.
- Each box is three lists of three numbers: the size [across, height, along] in metres, the rotation [yaw, pitch, roll] in degrees and the centre [X, height, Z].
- Safe positions are [X, height, Z]. Put them outside every box, at ground height.
- Bohemia ships one on Sakhal, around the warhead storage: "Bohemia's Sakhal example" opens it.
The cfggameplay.json Editor manages the list of area files, and the DayZ File Checker checks an area file before you upload it.
Questions
What does a player restricted area do?
Players who walk or log into one of its boxes are moved to the nearest of its safe positions. Bohemia uses it on Sakhal to keep players out of the warhead storage; you can use it to close off a trader, an admin island or a glitched building.
How do I turn an area on?
Upload the file into your mission folder, for example into a pra folder, and list it in cfggameplay.json under WorldsData: "playerRestrictedAreaFiles": ["pra/myarea.json"]. cfggameplay.json has to be turned on in your Nitrado settings, then restart.
What are the three numbers of a box?
Its size in metres (across, height, along), its rotation (yaw, pitch, roll in degrees, yaw turning it clockwise) and the position of its centre (X, height, Z). Bohemia's Sakhal box is [27, 5.2, 11]: 27 metres across and 11 along.
Where should safe positions go?
Just outside the boxes, on open ground, at the ground height. A safe position inside a box would put players right back in the area, so the builder flags it.
Is my file uploaded anywhere?
No. The builder runs in your browser. Only Apply to server sends the finished file to your own Nitrado server.
More free tools
types.xml Editor
Search, edit and bulk-change the loot in your types.xml, with common mistakes flagged before you upload it.
types.xml Compare
Put two types.xml files side by side and see which items were added, removed or changed.
Loot Flags Editor
Usages, tiers, categories and tags from cfglimitsdefinition.xml with how many items use each, and the misspelt flags in types.xml.
Loot Multiplier
Double the guns, halve the food or boost military loot: scale types.xml by group in one click.
cfgspawnabletypes Generator
Pick the attachments, magazines and cargo an item spawns with, set chances or presets and merge them into your file.
cfgrandompresets.xml Editor
Edit the loot presets cfgspawnabletypes draws from, add items from the item library and see where each one is used.
Vehicle Builder
Choose the wheels, doors and engine parts cars spawn with, or make every car ready to drive.
events.xml Editor
Change vehicles, helicopter crashes, animals and infected event by event, or scale a whole group at once.
Event Spawn Positions
See where cars, helicopter crashes and wrecks spawn in cfgeventspawns.xml on the map, then add, move or delete positions.
Heli Crash Loot Builder
Set how many helicopter crashes spawn, which wrecks and how much loot, and pick the crash loot from the item library.
Zombie Horde Generator
Place infected hordes on the map, set how many spawn and which types, and download zombie_territories.xml.
cfggameplay.json Editor
Change base damage, stamina, building checks, hit indicators and map options with switches instead of JSON.
globals.xml Editor
Infected and animal caps, cleanup times, login timers and loot damage, with every value explained.
cfgweather.xml Editor
Set clouds, fog, rain, wind and lightning with sliders, or turn off fog and rain in one click.
Contaminated Zone Editor
See the gas zones in cfgEffectArea.json on the map, then add, move, resize or remove them.
Spawn Point Editor
See fresh, hop and travel spawn points from cfgplayerspawnpoints.xml on the map, then add, move or delete them.
Object Spawner Builder
Place buildings and props on the map with their height and rotation, and get the JSON for objectSpawnersArr. No mods needed.
Map Coordinates
Click the map for X, Z, the grid square and height, measure distances, and paste coordinates from files or logs to see them.
messages.xml Generator
Build welcome messages, repeating notices and restart countdowns for your server and download the file.
Spawn Loadout Generator
Pick the starting clothes and items for fresh spawns and get a loadout file ready for cfggameplay.json.
Day & Night Calculator
Work out how long a day and a night last in real time from your server's time acceleration settings.
DayZ File Checker
Paste or open any DayZ XML or JSON file and find the exact line that would stop your server reading it.