Docs/JSON

Players and arrivals

Configure starting loadouts, respawn selection, spawn groups and map-edge arrivals in players.json.

API version 1Lua 5.1Updated 2026-11-07

Starting equipment, map-edge arrival and player groups. Applies live (next spawn, respawn or travel).

{
  "loadouts": {
    "starter": [
      {
        "item": "Makarov",
        "count": 1,
        "equipment_slot": "Primary",
        "magazine_item": "Makarov_Magazine",
        "magazine_rounds": 8,
        "chambered": true
      },
      {
        "item": "Bandage",
        "count": 3
      }
    ]
  },
  "select": {
    "new_character": "starter",
    "respawn": "starter",
    "respawn_by_hideout": {}
  },
  "spawn_groups": {
    "perimeter": {
      "rules": {
        "min_player_distance_m": 80,
        "min_ai_distance_m": 18,
        "min_event_distance_m": 0,
        "attempts_per_point": 25,
        "ring_step_m": 2.5,
        "nav_project_max_m": 8,
        "entry_side_depth_m": 60
      },
      "validate": {
        "min_points": 6,
        "min_spacing_m": 18,
        "perimeter_range_m": [100, 230],
        "y_range": [-20, 50]
      },
      "maps": {
        "Village": [
          [-128, 0, -65],
          [0, 0, -135]
        ]
      }
    }
  },
  "squads": {
    "enabled": true,
    "max_members": 4,
    "invite_range_m": 6,
    "always_visible": true,
    "regroup_seconds": 120
  },
  "arrival": {
    "travel": ["perimeter"],
    "console_tp": ["perimeter"]
  }
}

loadouts and select#

loadouts maps a loadout name (a-z, 0-9, _, up to 32 characters) to a list of items. A loadout is replaced whole by a layer that redefines it; null deletes it. Item entries:

  • item: item name, file ID or path, checked against the exports at load (/items finds names). count 1..64, amount 0..10000 for stackables.
  • equipment_slot: Primary, Secondary, Knife, Grenade1, Grenade2 or empty (placed in the grid).
  • magazine_item, magazine_rounds (0..200), chambered: loads a weapon; the magazine must be one of its compatible magazines and the rounds at most the magazine size.
  • preset (optional): a presets.json item preset applied to that entry.

select chooses the loadout: new_character for a character with no inventory, respawn after death, and respawn_by_hideout ({"Attic": "name"}) to override it by the hideout the player respawns into. Names must exist in loadouts.

spawn_groups and arrival#

By default first join and respawn happen in the player's own hideout, so spawn groups apply to map-edge arrival: travelling between maps and the admin /tp* commands. A scenario can also send a new character or a respawn straight to a public map with the player_spawn_point hook (see the API); when the hook names only a map, these groups (arrival.travel) choose the point. A group lists points [x, y, z] per public map. arrival.travel and arrival.console_tp list the groups to try in order; the first group with a usable point wins. Every enabled public map needs a point in arrival.travel.

rules: points are tried in random order; at each, attempts_per_point positions (the authored point, then rings of growing radius ring_step_m around it) are projected onto the navmesh (within nav_project_max_m) and rejected when another player is within min_player_distance_m or a live AI within min_ai_distance_m. min_event_distance_m (0 = off) also rejects points near a running ground event. validate checks the points at load: at least min_points, y inside y_range, max(|x|,|z|) inside perimeter_range_m (null disables) and pairwise at least min_spacing_m apart.

rules.entry_side_depth_m (0..1000, default 0 = any point; the shipped perimeter group uses 60 and has about 20–30 points per map so every side of a map has several) keeps an arrival on the side of the map the game itself would put it on, so a player cannot leave and re-enter a map until a point beside the far exit comes up. The reference point is the transition that leads back to the map the player came from (a hideout door counts), or the map's own spawn point when there is none (scenario spawn, respawn, /tp). The side is the map edge that reference point is nearest to; a point is offered when it lies within entry_side_depth_m metres of the outermost point towards that edge and is not nearer to another map exit than to the entrance. If fewer than two points remain (a hideout door in the middle of a map), the three points nearest the entrance are offered. When every offered point is taken, min_player_distance_m is halved once before the travel is refused.

Map-edge points are not chosen by distance to loot, water or time of day: the engine has no such data.

squads#

Player squads. A player looks at another player and presses Interact ([+ Invite to Squad] in the tooltip) to invite them, which creates a squad if the inviter has none; the Squad page in the Tools tab of the inventory (the Squad button under the tool buttons) creates and leaves a squad, accepts or declines invites and lets the leader promote a member to leader or remove one (leadership also passes to another member when the leader leaves). Members see a green marker over each other. Squads are kept by player identity, so a member who reconnects is still in the squad. They are saved to squads.json in the server data folder and restored on a server restart; a squad nobody has been connected to for 7 days (server downtime included) is dropped. Friendly fire is not changed.

KeyRangeMeaning
enabledbool, default truefalse turns squads off (the Squad button is hidden).
max_members2..16, default 4Largest squad.
invite_range_m1..100, default 6The invited player must be this close, alive, in the same map and in line of sight.
always_visiblebool, default trueMembers in the same map are always sent to each other, whatever the distance and line of sight (security.interest), so the marker shows through walls. false culls them like any other player.
regroup_seconds0..3600, default 120A member who enters a map through the same entrance within this long after another member arrives beside that member's arrival point instead of at a separate map-edge point. The anchor is where the first member arrived, not where they are now. 0 makes members arrive independently.

Omitting squads uses the defaults; any subset of keys may be set.

Found a mistake or missing detail? Tell us in the Discord.