Koja Scripts
JOBS

Configuration

Almost everything is editable live from the in-game admin panel (no restart), and persisted to data/config.json. You can also edit that file directly.

Configuration

data/config.json

{
  "general": {
    "debug": true,            // print [KOJA-*] console logs
    "autoCreateTable": true,  // run CREATE TABLE on start
    "command": "trucker",     // chat command that opens the tablet → /trucker
    "locale": "en"            // default UI language (see Localization)
  },
  "orders": {
    "useRoutingBuckets": true // instance players while loading/unloading
  },
  "progression": {
    "levels": { "1": 0, "2": 100, "3": 300, "...": "..." },
    "startingValues": { "level": 1, "exp": 0, "skill_points": 0 }
  },
  "logging": {
    "enabled": true,
    "webhooks": { "orders": "", "companies": "", "skills": "", "anticheat": "", "default": "" },
    "anticheat": { "enabled": true, "max_orders_per_10min": 8, "min_seconds_per_order": 20, "max_levels_per_min": 5 }
  }
}

General

KeyDescription
debugConsole logging. Turn off in production to silence [KOJA-*] lines.
autoCreateTableAuto-create the DB schema on resource start.
commandThe chat command that opens the tablet. Restart to apply a rename.
localeDefault language. Players see this until per-player language is set.

Orders

KeyDescription
useRoutingBucketsMoves a driver into a private routing bucket while loading/unloading so two drivers at the same depot don't clip each other's vehicles.

Progression

  • levels — total XP required to reach each level (1–15 by default).
  • startingValues — level / XP / skill points granted to brand-new drivers.

Logging

See Discord logging.

Data files

FileHolds
data/config.jsonThe settings above
data/orders.jsonOrder contracts
data/depots.jsonPickup/drop depots, parking, crate & pallet spots
data/vehicles.jsonVehicle catalogue (class, capacity, rental price)
data/skills.jsonThe three skill trees
data/quests.jsonDaily & weekly quest pools

In this section