Koja Scripts
JOBS

Logs

Koja Trucker posts clean Discord embeds for key events across four channels, plus an anti-cheat channel for suspicious activity.

Logs

Channels

ChannelLogs
ordersCompleted deliveries — driver, route, category, reward, XP, distance, time, company.
companiesNew companies — name, tag, owner, identity.
skillsSkill purchases — player, skill, level, cost.
anticheatSuspicious activity — reason, detail, full player identity.

Setting webhook URLs

Webhook URLs are kept server-side (never sent to clients). Set them either in server.cfg via convars (recommended — keeps secrets out of the resource) or in data/config.json. A convar always overrides the config value.

setr koja_trucker_webhook_orders    "https://discord.com/api/webhooks/..."
setr koja_trucker_webhook_companies "https://discord.com/api/webhooks/..."
setr koja_trucker_webhook_skills    "https://discord.com/api/webhooks/..."
setr koja_trucker_webhook_anticheat "https://discord.com/api/webhooks/..."
setr koja_trucker_webhook_default   "https://discord.com/api/webhooks/..."

If a channel's URL is empty, the default webhook is used as a fallback. If both are empty, that log is silently skipped.

Toggling logs

In Admin → Settings → Discord logging you can:

  • turn all logging on/off,
  • turn anti-cheat alerts on/off,
  • tune the anti-cheat thresholds.

Anti-cheat heuristics

A flag is raised (and an alert posted) when a player:

HeuristicDefault trigger
Completes away from the drop-offPosition check fails (also blocks the payout)
Finishes a real route too fast< min_seconds_per_order (20 s)
Completes too many orders> max_orders_per_10min (8) in 10 min
Levels up too fast> max_levels_per_min (5) in 60 s
  • Panel — The admin panel is built into the tablet. It's the visual editor for the whole resource — no file editing required.
  • Admin — back to the section overview