Koja Scripts
FREE

Database

Understand dealer storage, tables, and server-side price calculation.

Database

Storage

Dealer configuration is stored in data/dealers.json and the database.

Discount codes are stored in the database. The codes table in the configuration only seeds initial codes on first start.

Tables

Tables are created automatically on first start.

When KOJA.CreateAutoTable is false, import koja-cardealer.sql manually.

Price calculation

Prices are calculated server-side in this order:

  1. Base vehicle price
  2. Promotion discount
  3. VIP discount
  4. Coupon discount
  • Configuration — Configure defaults, images, prestige integration, and UI builds.
  • Features — Player-facing dealership, progression, promotion, and leasing features.
  • Installation — Install Car Dealer V2 and its required dependencies.
  • Exports & Commands — Admin, leasing, and prestige commands with available server exports.
  • Admin Menu — Create and manage dealerships live in-game.
  • Car Dealer V2 — back to the section overview