ktoxktox docs

Troubleshooting

Common issues and fixes for ktx_dispatch.

Troubleshooting

/dispatch not working

  • Check that Commands.dispatch.enabled is true in static/config.json
  • If restricted is true, only players with emergency jobs can use the command
  • Look for errors in the server console on resource start

Calls not appearing for workers

  • The player's framework job must match the job field in EmergencyServices
  • Example: if your police job is named "leo" instead of "police", update the config
  • Check that getPlayerJobType in custom/server.lua returns the correct job name

No access to dispatch panel

  • hasDispatchAccess in custom/server.lua must return true for the player
  • Verify the player's job is set up correctly in your framework
  • Enable debug mode to see what job name is being returned

Services missing from the panel

  • Check that the service has "enabled": true in EmergencyServices config
  • Disabled services are hidden from the UI entirely

Calls not routing to the right department

  • Each call is routed based on the service selected by the caller
  • Workers only see calls for their department (matched via job field)
  • Verify the mapping between framework jobs and service keys