Configuration reference
Generated from the comments in config.lua and server/config.lua by tools/config-doc.py. The files themselves are the source of truth: every setting below is annotated where it lives, with the same tex
Generated from the comments in config.lua and server/config.lua by tools/config-doc.py. The files themselves are the source of truth: every setting below is annotated where it lives, with the same text.
| File | Holds | Who can read it |
|---|---|---|
config.lua | terminals, categories, listing kinds, durations, the ways in, feature toggles, animations, sounds, target, UI, integrations, ACE names | every player (shared) |
server/config.lua | fees, commission, accounts, limits, per-unit price ceilings, blacklist, alt policy, cooldowns, the sweep, webhooks | the server only |
presets/<name>.lua + presets/server/<name>.lua | your own setup on top of both, chosen by Config.Preset | shared half: everyone; server half: the server only |
A setting that fails validation is named by its exact key in the server console, and the market stays closed until it is fixed.
config.lua (shared)
Config.Debug
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Debug | Draws every terminal and locker zone as a box and prints rejected actions to the console. | boolean | false | NEVER changes behaviour — no shortened auctions, no free fees, no skipped checks — so it is safe to leave on while diagnosing. |
Config.Preset
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Preset | A preset can also have a server half in presets/server/ for the secret values (ceilings, blacklist). Both halves check this same name. | string — the name a preset file checks for, or 'none' | 'none' | the shipped default is a vanilla map with no MLO. See presets/README.md for how to write your own. |
Config.Terminals
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Terminals.id | Internal identity. Referenced by hooks, logs and the open session. | string, unique, lowercase, no spaces | 'auction_house' | |
Config.Terminals.label | Shown on the blip and in the panel header. | string | 'Auction House' | plain text, not a locale key — name your own auction house. |
Config.Terminals.locations | Every place this terminal stands. Each one is a clerk ped at coords facing heading, with the locker crate placed relative to them. | array of { coords = vector3, heading = number } | PLACEHOLDER — Legion Square. Survey with /cc_marketplace_coords before going live. | |
Config.Terminals.zone.size | Box dimensions in metres, x/y/z. | vector3 | vec3(1.6, 1.6, 2.0) | the SERVER checks distance itself with ServerConfig.MaxInteractDistance; this box is only where the prompt appears. |
Config.Terminals.ped.model | Ped model name. | string — validated on boot | 's_m_m_highsec_01' | |
Config.Terminals.ped.scenario | What the clerk does while idle. | string — any WORLD_HUMAN_* scenario, or nil to stand still | 'WORLD_HUMAN_CLIPBOARD' | |
Config.Terminals.locker.model | Prop model for the crate. | string — validated on boot | 'prop_box_wood02a' | |
Config.Terminals.locker.offset | Where the crate sits, relative to the clerk, in the clerk's own frame: x = to their right, y = in front of them, z = up. | vector3, metres | vec3(1.2, 0.6, -1.0) | a crate in front of the clerk (y > 0) reads as a counter. Nudge in 0.1 steps. |
Config.Terminals.locker.size | The interaction box around the crate. | vector3, metres | vec3(1.2, 1.2, 1.2) | |
Config.Terminals.blip.sprite | Blip icon id. | integer — see docs.fivem.net/docs/game-references/blips | 431 | |
Config.Terminals.blip.colour | Blip colour id. | integer | 5 | |
Config.Terminals.blip.scale | Blip size. | number | 0.7 | |
Config.Terminals.blip.shortRange | Only show when nearby on the minimap. | boolean | true |
Config.DefaultCategory
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.DefaultCategory | Where an item goes when Config.ItemCategories does not mention it. | string — must be the id of an entry in Config.Categories | 'misc' | this is what makes a brand-new item listable the day you add it to your inventory, with no edit here. |
Config.ItemCategories
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.ItemCategories | Which category each item is filed under. Item names are YOUR inventory's names: lowercase, no spaces — 'weapon_pistol', not 'Pistol'. | map of item name -> category id | an item NOT in this list is still listable; it lands in Config.DefaultCategory. Items that may never be listed at all are in ServerConfig.Blacklist, in server/config.lua. |
Config.Kinds
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Kinds.auction | Timed auction: a start price, an optional reserve, bids, a clock. | boolean | true | |
Config.Kinds.buynow | Fixed price, first come first served. Still expires after its duration and returns to the seller if nobody buys it. | boolean | true | |
Config.Kinds.hybrid | An auction with a buy-now price that disappears on the first bid. | boolean | true |
Config.Access
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Access.command | Chat command that opens the market from anywhere, for browsing and bidding. | string (no slash), or nil to register no command | 'marketplace' | |
Config.Access.phoneApp | Register the Marketplace app in lb-phone when it is running. | boolean | true | detected at runtime. With no lb-phone, this does nothing and nothing else changes. |
Config.Access.phoneDefaultApp | Install the phone app on every phone automatically. | boolean | true | false leaves it in lb-phone's app store for each player to download themselves. Ignored when phoneApp is false. |
Config.Access.remoteList | Allow creating a listing away from a terminal (command or phone). | boolean | false | off means the seller hands the item to the clerk in person, which is the immersion. On is convenient and every check still runs — only the distance requirement is dropped. |
Config.Access.remoteBid | Allow bidding and buying away from a terminal (command or phone). | boolean | true | off makes every bid and purchase happen at a clerk, like listing. Browsing still works from anywhere; the panel says where to go instead of offering the button. |
Config.Access.remoteCollect | Allow collecting claims away from a terminal. | boolean | false | STRONGLY recommended off. The locker crate is the moment a player actually receives what they won; a remote collect turns the auction house into a menu. |
Config.Features
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Features.blips | Map markers for every terminal location. | boolean | true | |
Config.Features.peds | The clerk ped at each location. | boolean | true | off leaves the zone working with no ped standing in it. |
Config.Features.lockerProp | The locker crate prop. | boolean | true | off keeps the locker zone, invisible. Use it if you have placed your own crate or counter in the map. |
Config.Features.sounds | Gavel, bid and collection sounds. | boolean | true | |
Config.Features.animations | Collection and hand-over animations. | boolean | true | off makes collecting instant. It changes nothing the server enforces. |
Config.Features.featured | Paid "featured" slots at the top of the browse page. | boolean | true | the fee is ServerConfig.Fees.featuredFlat. Off hides the option entirely. |
Config.Features.salesHistory | Per-item average sale chart on the listing page, from completed sales. | boolean | true | |
Config.Features.watchlist | Let players watch listings: a Watching list in the panel, and the panel refreshes for everyone watching when a listing gets a bid. | boolean | true | how many one player may watch is ServerConfig.Limits.watchlistMax. |
Config.Features.offlineNotices | Tell players who were offline what happened while they were away (outbid, won, sold, unsold) when they next load in. | boolean | true | off only skips the message. Money and items they are owed wait as claims regardless, and the panel lists them. |
Config.Anims
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Anims.collect.dict | Animation dictionary. | string | 'mp_common' | |
Config.Anims.collect.clip | Clip inside that dictionary. | string | 'givetake1_a' | |
Config.Anims.collect.flag | Behaviour flags, a BITFIELD: 1 loop · 2 hold last frame · 8 cancellable 16 upper body only · 32 allows movement | integer | 48 (upper body, can move) | |
Config.Anims.collect.durationMs | How long it plays. | integer, milliseconds | 1500 | cosmetic only. Collecting is settled by the server the moment the player asks; this is the hand-over. |
Config.Sounds
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Sounds.bid.name | Sound name. | string | 'SELECT' | |
Config.Sounds.bid.set | Soundset it belongs to. | string | 'HUD_FRONTEND_DEFAULT_SOUNDSET' |
Config.Target
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Target.icon | Icon on the clerk's target option. | string — Font Awesome class, as used by ox_target/qb-target | 'fa-solid fa-gavel' | with no targeting resource, cc_lib falls back to a native [E] prompt automatically and this is ignored. |
Config.Target.lockerIcon | Icon on the locker's target option. | string — Font Awesome class | 'fa-solid fa-box-open' | |
Config.Target.distance | How close the player must be for the options to appear. | number, metres | 2.0 | the SERVER checks distance independently with its own, larger tolerance. Raising this only shows the prompt sooner. |
Config.Keybind
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Keybind | Optional keybind that runs the Config.Access.command. | string key name (e.g. 'F7'), or nil | nil = no bind registered at all |
Config.UI
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.UI.accent | Accent colour for the panel chrome, applied as the CSS variable --accent. | string, hex | '#1c2434' | |
Config.UI.theme | Light or dark until a player picks their own with the sun / moon button in the top bar. Their choice is kept on their own PC. | 'light' | 'dark' | 'light' | |
Config.UI.accentDark | The colour of the main action buttons in DARK mode. The default accent is near-black, which disappears on a dark panel, so dark mode needs its own. White text on it must stay readable (4.5:1 or better). | string, hex | '#2670c9' (white on it is 4.9:1) | |
Config.UI.itemImages | Item pictures in the panel. 'auto' shows ox_inventory's own images (the same ones its inventory shows, including an image an item's metadata names) and its item labels, when ox_inventory is running; plain icons and the stored labels otherwise. false: icons and stored labels only. | 'auto' | false | 'auto' | |
Config.UI.currency | Currency for every amount shown, as an ISO 4217 code. | string | 'USD' | display only, formatted with the player's locale. It does not convert anything. |
Config.UI.countdownMs | How often the on-screen countdowns tick. | integer, milliseconds | 1000 | cosmetic. Auctions end on the SERVER's clock; a countdown that reaches zero shows "ending…" until the server settles. |
Config.Integrations
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Integrations.inventory | Where item pictures and labels come from in the panel. | 'auto' | 'ox_inventory' | 'qb-inventory' | 'ps-inventory' | 'lj-inventory' | 'qs-inventory' | 'codem-inventory' | 'none' | 'auto' (the first of those that is running) | 'none' shows plain icons and the label stored when the item was listed. Config.UI.itemImages = false does the same. |
Config.Integrations.imagePath | Override the folder item pictures are read from, when your inventory keeps them somewhere unusual (a renamed resource, a CDN). | string URL without a trailing slash, or nil | nil (the inventory's usual folder; ox_inventory also honours its own inventory:imagepath convar) | 'nui://my_inventory/html/images' |
Config.Integrations.phone | Which phone gets the Marketplace app (Config.Access.phoneApp). | 'auto' | 'lb-phone' | 'none' | 'auto' | lb-phone is the only phone with a custom-app API this resource supports today. Every other phone still gets the phone notifications below and the /marketplace command. |
Config.Integrations.phoneMode | How the lb-phone app opens. | 'inside' | 'launcher' | 'inside' | 'inside' draws the marketplace on the phone screen (tabs along the bottom, the phone closes it). 'launcher' puts the phone away and opens the full-screen panel instead. |
Config.Integrations.phoneNotify | Also send outbid / won / sold as a phone notification when the player has a phone cc_lib knows (lb-phone, yseries, gksphone, qs, qb-phone, npwd). With no phone it is the normal toast, so nothing is lost. | boolean | true | needs cc_lib 1.6.0+ (CC.phone). Older cc_lib: toasts only. |
Config.Ace
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
Config.Ace.admin | Destructive: force-cancel a listing and refund everyone. | string | 'cc_marketplace.admin' | |
Config.Ace.survey | Coordinate survey: /cc_marketplace_coords. Read-only. | string | 'cc_marketplace.survey' | |
Config.Ace.diagnostics | Read-only diagnostics and the economy report: /cc_marketplace_status and /cc_marketplace_economy. | string | 'cc_marketplace.diagnostics' |
server/config.lua (server only)
ServerConfig.Fees
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Fees.listingFlat | Flat fee charged when a listing is created. | integer, currency units | 250 | NOT refunded if the item does not sell. That is the sink. |
ServerConfig.Fees.listingPercent | Extra listing fee as a percentage of the asking amount (the start price for an auction, the price for a buy-now). | number, percent 0–100 | 1.0 | scales the fee with the listing, so a $2m listing costs more to post than a $200 one. Floored to whole units. |
ServerConfig.Fees.featuredFlat | Extra fee for a featured slot at the top of the browse page. | integer, currency units | 2500 | ignored when Config.Features.featured is off. |
ServerConfig.Fees.commissionPercent | Commission taken from the final sale amount before the seller is paid. | number, percent 0–99 | 5.0 | this is also what laundering through the market COSTS. A player moving $1m to an alt by "buying" a bottle of water pays this percentage to do it — and Ceilings below stops the bottle of water costing $1m in the first place. |
ServerConfig.Fees.commissionTo | Where commission goes. | string — 'burn', or 'society:' e.g. 'society:government' | 'burn' | 'burn' destroys it, the strongest anti-inflation setting. 'society:' pays it into that job's society account instead (bare job name — cc_lib adds any prefix your framework needs). If the society cannot be paid, the commission is burned and the failure is logged; the sale is never blocked by it. |
ServerConfig.Fees.relistDiscountPercent | Discount on the listing fee when a seller relists an unsold item straight from their claims. | integer, percent 0–100 | 50 | |
ServerConfig.Fees.cancelFlat | Fee for cancelling a listing before it ends. | integer, currency units | 0 | an auction with bids can NEVER be cancelled by its seller, whatever this is. This applies to buy-now listings and to auctions nobody has bid on. Raise it if players squat on listing slots by listing and cancelling. |
ServerConfig.Accounts
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Accounts.fees | Listing, featured and cancel fees are paid from here. | 'bank' | ||
ServerConfig.Accounts.bids | Bids are taken from here when placed, and buy-now purchases paid. | 'bank' | ||
ServerConfig.Accounts.payouts | Sale proceeds are paid into here when the seller collects. | 'bank' |
ServerConfig.Limits
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Limits.activeListingsPerPlayer | Live listings one character may have at once. | integer | 10 | |
ServerConfig.Limits.listingsPerDay | Listings one character may CREATE per rolling 24 hours, cancelled ones included. | integer | 25 | the cap that stops list/cancel spam. Counted from the database, so a restart does not reset it. |
ServerConfig.Limits.minAsk | Smallest asking amount for any listing. | integer, currency units | 50 | |
ServerConfig.Limits.maxAsk | Largest asking amount for any listing. | integer, currency units | 5000000 | Ceilings below normally binds long before this does. |
ServerConfig.Limits.maxBid | Largest single bid or buy-now purchase. | integer, currency units | 10000000 | must be >= maxAsk, or a listing could be created that nobody is allowed to buy. Checked on boot. |
ServerConfig.Limits.bidIncrementPercent | The next bid must beat the current one by at least this percentage... | number, percent | 5.0 | |
ServerConfig.Limits.bidIncrementFlat | ...or by at least this flat amount, whichever is LARGER. | integer, currency units | 100 | the flat floor is what stops a bidding war advancing $1 at a time on a cheap item. |
ServerConfig.Limits.maxCountPerListing | Largest stack that can go in one listing. | integer | 500 | |
ServerConfig.Limits.maxMetadataBytes | Largest item metadata (durability, serial, quality…) accepted into escrow, as encoded JSON. | integer, bytes | 8192 | an item over this cannot be listed and the player is told why. Protects the database and the browse page from an inventory that stores something enormous on an item. |
ServerConfig.Limits.softCloseSeconds | A bid placed with less than this left on the clock extends the auction. | integer, seconds | 120 | this is anti-sniping. 0 turns it off and auctions end exactly on time. |
ServerConfig.Limits.softCloseExtendSeconds | How far each late bid extends the clock. | integer, seconds | 120 | |
ServerConfig.Limits.softCloseMaxExtensions | The most times one auction can be extended. | integer | 10 | without a cap, two determined bidders keep an auction open forever. |
ServerConfig.Limits.pageSize | Listings per browse page. | integer, 1–100 | 24 | |
ServerConfig.Limits.maxSearchLength | Longest search string accepted. | integer, characters | 32 | |
ServerConfig.Limits.inventorySlots | How many inventory slots the sell screen reads to show what can be listed. | integer, 1–200 | 50 | match your inventory's player slot count (ox_inventory's inventory:slots convar, qb's MaxInventorySlots). Too low hides items in the last slots from the sell screen; too high reads empty slots for nothing. Listing itself is not affected: it reads the one slot it is given. |
ServerConfig.Limits.watchlistMax | Live listings one player may watch at once. | integer | 50 | finished listings drop off the list and do not count. |
ServerConfig.Ceilings
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Ceilings.default | Per-unit ceiling for any item not listed in items. | integer, currency units | 50000 | must be >= Limits.minAsk or an unlisted item could never be listed at all. Checked on boot. Low on purpose: a high default is the laundering route (an alt "buys" one bottle of water for $5m). Raise single items in items instead. |
ServerConfig.Ceilings.items | Per-item overrides. | map of item name -> integer, currency units per unit |
ServerConfig.AltPolicy
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.AltPolicy | What happens when a player bids on a listing created by ANOTHER CHARACTER on the same account (same Rockstar licence). Bidding on your own character's listing is always refused; this is only about a second character. | 'allow' | 'flag' | 'block' | 'flag' | 'flag' lets the bid through, raises CC.security.flag and writes an economy log line, so you can review it. 'block' refuses it, which also blocks two real players who share a PC. Pick for your community. |
ServerConfig.Cooldowns
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Cooldowns.openUi | Opening the panel. | integer, ms | 500 | |
ServerConfig.Cooldowns.browse | Browse, search and listing-detail reads. | integer, ms | 250 | |
ServerConfig.Cooldowns.sellable | Reading the inventory for the Sell screen. | integer, ms | 1500 | one read touches every slot up to Limits.inventorySlots (and on some inventories reads the whole inventory per slot), so it is kept well apart from the cheap browse reads. |
ServerConfig.Cooldowns.list | Creating a listing. | integer, ms | 3000 | |
ServerConfig.Cooldowns.bid | Placing a bid. | integer, ms | 1000 | |
ServerConfig.Cooldowns.buynow | A buy-now purchase. | integer, ms | 2000 | |
ServerConfig.Cooldowns.cancel | Cancelling a listing. | integer, ms | 2000 | |
ServerConfig.Cooldowns.collect | Collecting a claim. | integer, ms | 1000 | |
ServerConfig.Cooldowns.watch | Adding or removing a watchlist entry. | integer, ms | 500 |
ServerConfig.MaxInteractDistance
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.MaxInteractDistance.terminal | Listing, and opening the panel at a terminal. | number, metres | 4.0 | |
ServerConfig.MaxInteractDistance.locker | Collecting from the locker crate. | number, metres | 4.0 |
ServerConfig.Sweep
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Sweep.intervalSeconds | How often the sweep runs. | integer, seconds, 1–300 | 10 | an auction ends at most this long after its clock reaches zero. Lower is snappier and costs one indexed query a tick. |
ServerConfig.Sweep.batch | Most listings settled per sweep. | integer, 1–500 | 50 | a backlog after a long outage drains over a few sweeps rather than stalling one server frame. |
ServerConfig.Webhooks
| Setting | What it does | Type | Default | Notes |
|---|---|---|---|---|
ServerConfig.Webhooks.default | Fallback for any channel left empty below. | string URL, or '' | GetConvar('cc_marketplace_webhook_default', '') | |
ServerConfig.Webhooks.economy | Every listing, bid, refund, sale, fee and collection, with the inputs AND the result. | string URL, or '' | GetConvar('cc_marketplace_webhook_economy', '') | |
ServerConfig.Webhooks.security | Every CC.security.flag: malformed payloads, alt-account bids, out-of-range values. | string URL, or '' | GetConvar('cc_marketplace_webhook_security', '') | flags RECORD, they never kick or ban. |
ServerConfig.Webhooks.admin | Every admin action: force-cancels, with the actor and the listing. | string URL, or '' | GetConvar('cc_marketplace_webhook_admin', '') |