Koja Scripts
FREE

Parking

Players can buy individual market slots within zones, pay weekly rent, and park their listed vehicles there.

Parking

Players can buy individual market slots within zones, pay weekly rent, and park their listed vehicles there. This page covers the slot-level settings.


Settings

shared/config.lua
Config.Parking = {
    SlotPrice = 10000,           -- one-time slot purchase
    SlotWeeklyFee = 2000,        -- recurring rent (auto-charged every 7 days)
    MaxSlotsPerParking = 30,
    SpacesPerPage = 10,          -- pagination in the My Cars UI
}
FieldDefaultPurpose
SlotPrice10000What the player pays once to buy a slot
SlotWeeklyFee2000Auto-charged from the slot owner's bank every 7 days
MaxSlotsPerParking30Hard cap for external parking owners adding slots
SpacesPerPage10UI pagination — how many slots per page

Weekly fee flow

Every minute the server runs a sweep over expired next_payment_at timestamps:

  1. Player owns slot → SlotWeeklyFee due.
  2. Server attempts removeMoney('bank').
  3. Successnext_payment_at rolled forward by 7 days.
  4. Failure (no funds) — slot is freed, listing in it is removed from the market.

Free slots

Set both prices to zero to make slots free:

Config.Parking = {
    SlotPrice = 0,
    SlotWeeklyFee = 0,
    MaxSlotsPerParking = 30,
    SpacesPerPage = 10,
}

In this mode, players can claim any vacant slot for free and there's no auto-eviction.