Installation
Welcome to Koja-Carmarket, a player-driven car market with auctions, exchange zones, rentable parking slots and test drives. This guide walks you through the install end-to-end.
📋 Requirements
Before installing Koja-Carmarket, make sure the following resources are present and start before koja-carmarket:
- koja-lib — framework bridge (ESX / QBCore detection, money helpers, callback API)
- oxmysql — database driver
- ox_target (optional) — targeted interactions; falls back to draw-text + key if missing
🚀 Installation
-
Drop the resource into
Place the unpackedresourceskoja-carmarketfolder anywhere insideresources/(e.g.resources/[koja]/koja-carmarket).resources/ └── [koja]/ ├── koja-lib/ └── koja-carmarket/ -
Install dependencies
Follow the install instructions for each: -
Database setup
Option A — Automatic (recommended)
Tables are created automatically on first start. Confirm this inshared/config.lua:shared/config.luaConfig.Database = { AutoCreateTable = true, }Option B — Manual SQL import
Rundatabase.sqlagainst your database manually and setAutoCreateTable = false. -
Configure
server.cfg(order matters)ensure oxmysql ensure ox_target # optional ensure koja-lib ensure koja-carmarket -
First-run smoke test
- Start the server.
- Look for
[koja-carmarket] Table … created.or… already existslines in the console. - Go to one of the default market zones (e.g. Mark, coords
-2187, -409, 13) — there should be an NPC with aCar Marketinteraction. - Open the tablet and verify the UI loads in your
Config.Locale.
Related pages
- Configuration — Configure zones, parking, exchange rules, test drives, and custom images.
- Features — Player-facing flows and core marketplace features.
- Exports & Commands — All public API surface of koja-carmarket.
- Database — Full reference for every table created by koja-carmarket.
- Zones — Market zones define where players can list and buy vehicles.
- CarMarket — back to the section overview