ktoxktox docs

Configuration

Configuration reference for ktx_dispatch.

Configuration

All configuration lives in static/config.json.

Framework

{
  "Framework": {
    "language": "en"
  }
}

Language code matching a file in locales/.

Commands

{
  "Commands": {
    "dispatch": {
      "enabled": true,
      "command": "dispatch",
      "restricted": false
    }
  }
}
  • command - the command players type (without /)
  • enabled - toggle the command on or off
  • restricted - if true, only emergency workers can use the command

Dispatch

{
  "Dispatch": {
    "maxActiveCalls": 50,
    "callCooldownSeconds": 10
  }
}
  • maxActiveCalls - maximum calls stored at once. Oldest calls are removed when the limit is reached.
  • callCooldownSeconds - cooldown between creating calls per player

Priorities

Four priority levels control how calls are categorized and sorted.

{
  "Priorities": {
    "low": {
      "enabled": true,
      "name": "Low",
      "color": "#8b5cf6",
      "icon": "fas fa-circle",
      "weight": 1
    },
    "medium": {
      "enabled": true,
      "name": "Medium",
      "color": "#a855f7",
      "icon": "fas fa-circle",
      "weight": 2
    },
    "high": {
      "enabled": true,
      "name": "High",
      "color": "#ec4899",
      "icon": "fas fa-exclamation-circle",
      "weight": 3
    },
    "critical": {
      "enabled": true,
      "name": "Critical",
      "color": "#dc2626",
      "icon": "fas fa-exclamation-triangle",
      "weight": 4
    }
  }
}
  • enabled - allow this priority level to be used
  • name - display name in the UI
  • color - hex color for the priority badge
  • icon - FontAwesome class string (e.g. "fas fa-circle" or "fa-solid fa-circle")
  • weight - sort order. Higher weight = higher priority, shown first

EmergencyServices

Six services define which departments exist and which framework jobs map to them.

{
  "EmergencyServices": {
    "police": {
      "enabled": true,
      "name": "Police",
      "icon": "fa-solid fa-shield-halved",
      "job": "police"
    },
    "ambulance": {
      "enabled": true,
      "name": "EMS",
      "icon": "fa-solid fa-ambulance",
      "job": "ambulance"
    },
    "fire": {
      "enabled": false,
      "name": "Fire Dept",
      "icon": "fa-solid fa-fire",
      "job": "fire"
    },
    "mechanic": {
      "enabled": true,
      "name": "Mechanic",
      "icon": "fa-solid fa-wrench",
      "job": "mechanic"
    },
    "sheriff": {
      "enabled": false,
      "name": "Sheriff",
      "icon": "fa-solid fa-star",
      "job": "sheriff"
    },
    "fib": {
      "enabled": false,
      "name": "FIB",
      "icon": "fa-solid fa-building-shield",
      "job": "fib"
    }
  }
}
  • enabled - toggle this service on or off
  • name - display name in the dispatch panel
  • icon - FontAwesome class string ("fa-solid fa-*" works alongside "fas fa-*")
  • job - the framework job name. This must match the job assigned to players in your framework (e.g. ESX job name, QBx job name). Players with this job see calls routed to this service.

Debug

{
  "Debug": {
    "enabled": false,
    "logLevel": "warn",
    "modules": {
      "client": true,
      "server": true,
      "ui": true,
      "dispatch": true
    }
  }
}
  • enabled - master toggle for debug output
  • logLevel - verbosity: "info", "warn", "error", "debug"
  • modules - per-module toggles for client, server, ui, and dispatch logs