Skip to content

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.

FileHoldsWho can read it
config.luaterminals, categories, listing kinds, durations, the ways in, feature toggles, animations, sounds, target, UI, integrations, ACE namesevery player (shared)
server/config.luafees, commission, accounts, limits, per-unit price ceilings, blacklist, alt policy, cooldowns, the sweep, webhooksthe server only
presets/<name>.lua + presets/server/<name>.luayour own setup on top of both, chosen by Config.Presetshared 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

SettingWhat it doesTypeDefaultNotes
Config.DebugDraws every terminal and locker zone as a box and prints rejected actions to the console.booleanfalseNEVER changes behaviour — no shortened auctions, no free fees, no skipped checks — so it is safe to leave on while diagnosing.

Config.Preset

SettingWhat it doesTypeDefaultNotes
Config.PresetA 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

SettingWhat it doesTypeDefaultNotes
Config.Terminals.idInternal identity. Referenced by hooks, logs and the open session.string, unique, lowercase, no spaces'auction_house'
Config.Terminals.labelShown on the blip and in the panel header.string'Auction House'plain text, not a locale key — name your own auction house.
Config.Terminals.locationsEvery 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.sizeBox dimensions in metres, x/y/z.vector3vec3(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.modelPed model name.string — validated on boot's_m_m_highsec_01'
Config.Terminals.ped.scenarioWhat the clerk does while idle.string — any WORLD_HUMAN_* scenario, or nil to stand still'WORLD_HUMAN_CLIPBOARD'
Config.Terminals.locker.modelProp model for the crate.string — validated on boot'prop_box_wood02a'
Config.Terminals.locker.offsetWhere 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, metresvec3(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.sizeThe interaction box around the crate.vector3, metresvec3(1.2, 1.2, 1.2)
Config.Terminals.blip.spriteBlip icon id.integer — see docs.fivem.net/docs/game-references/blips431
Config.Terminals.blip.colourBlip colour id.integer5
Config.Terminals.blip.scaleBlip size.number0.7
Config.Terminals.blip.shortRangeOnly show when nearby on the minimap.booleantrue

Config.DefaultCategory

SettingWhat it doesTypeDefaultNotes
Config.DefaultCategoryWhere 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

SettingWhat it doesTypeDefaultNotes
Config.ItemCategoriesWhich 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 idan 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

SettingWhat it doesTypeDefaultNotes
Config.Kinds.auctionTimed auction: a start price, an optional reserve, bids, a clock.booleantrue
Config.Kinds.buynowFixed price, first come first served. Still expires after its duration and returns to the seller if nobody buys it.booleantrue
Config.Kinds.hybridAn auction with a buy-now price that disappears on the first bid.booleantrue

Config.Access

SettingWhat it doesTypeDefaultNotes
Config.Access.commandChat command that opens the market from anywhere, for browsing and bidding.string (no slash), or nil to register no command'marketplace'
Config.Access.phoneAppRegister the Marketplace app in lb-phone when it is running.booleantruedetected at runtime. With no lb-phone, this does nothing and nothing else changes.
Config.Access.phoneDefaultAppInstall the phone app on every phone automatically.booleantruefalse leaves it in lb-phone's app store for each player to download themselves. Ignored when phoneApp is false.
Config.Access.remoteListAllow creating a listing away from a terminal (command or phone).booleanfalseoff 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.remoteBidAllow bidding and buying away from a terminal (command or phone).booleantrueoff 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.remoteCollectAllow collecting claims away from a terminal.booleanfalseSTRONGLY 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

SettingWhat it doesTypeDefaultNotes
Config.Features.blipsMap markers for every terminal location.booleantrue
Config.Features.pedsThe clerk ped at each location.booleantrueoff leaves the zone working with no ped standing in it.
Config.Features.lockerPropThe locker crate prop.booleantrueoff keeps the locker zone, invisible. Use it if you have placed your own crate or counter in the map.
Config.Features.soundsGavel, bid and collection sounds.booleantrue
Config.Features.animationsCollection and hand-over animations.booleantrueoff makes collecting instant. It changes nothing the server enforces.
Config.Features.featuredPaid "featured" slots at the top of the browse page.booleantruethe fee is ServerConfig.Fees.featuredFlat. Off hides the option entirely.
Config.Features.salesHistoryPer-item average sale chart on the listing page, from completed sales.booleantrue
Config.Features.watchlistLet players watch listings: a Watching list in the panel, and the panel refreshes for everyone watching when a listing gets a bid.booleantruehow many one player may watch is ServerConfig.Limits.watchlistMax.
Config.Features.offlineNoticesTell players who were offline what happened while they were away (outbid, won, sold, unsold) when they next load in.booleantrueoff only skips the message. Money and items they are owed wait as claims regardless, and the panel lists them.

Config.Anims

SettingWhat it doesTypeDefaultNotes
Config.Anims.collect.dictAnimation dictionary.string'mp_common'
Config.Anims.collect.clipClip inside that dictionary.string'givetake1_a'
Config.Anims.collect.flagBehaviour flags, a BITFIELD: 1 loop · 2 hold last frame · 8 cancellable 16 upper body only · 32 allows movementinteger48 (upper body, can move)
Config.Anims.collect.durationMsHow long it plays.integer, milliseconds1500cosmetic only. Collecting is settled by the server the moment the player asks; this is the hand-over.

Config.Sounds

SettingWhat it doesTypeDefaultNotes
Config.Sounds.bid.nameSound name.string'SELECT'
Config.Sounds.bid.setSoundset it belongs to.string'HUD_FRONTEND_DEFAULT_SOUNDSET'

Config.Target

SettingWhat it doesTypeDefaultNotes
Config.Target.iconIcon 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.lockerIconIcon on the locker's target option.string — Font Awesome class'fa-solid fa-box-open'
Config.Target.distanceHow close the player must be for the options to appear.number, metres2.0the SERVER checks distance independently with its own, larger tolerance. Raising this only shows the prompt sooner.

Config.Keybind

SettingWhat it doesTypeDefaultNotes
Config.KeybindOptional keybind that runs the Config.Access.command.string key name (e.g. 'F7'), or nilnil = no bind registered at all

Config.UI

SettingWhat it doesTypeDefaultNotes
Config.UI.accentAccent colour for the panel chrome, applied as the CSS variable --accent.string, hex'#1c2434'
Config.UI.themeLight 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.accentDarkThe 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.itemImagesItem 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.currencyCurrency 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.countdownMsHow often the on-screen countdowns tick.integer, milliseconds1000cosmetic. Auctions end on the SERVER's clock; a countdown that reaches zero shows "ending…" until the server settles.

Config.Integrations

SettingWhat it doesTypeDefaultNotes
Config.Integrations.inventoryWhere 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.imagePathOverride 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 nilnil (the inventory's usual folder; ox_inventory also honours its own inventory:imagepath convar)'nui://my_inventory/html/images'
Config.Integrations.phoneWhich 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.phoneModeHow 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.phoneNotifyAlso 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.booleantrueneeds cc_lib 1.6.0+ (CC.phone). Older cc_lib: toasts only.

Config.Ace

SettingWhat it doesTypeDefaultNotes
Config.Ace.adminDestructive: force-cancel a listing and refund everyone.string'cc_marketplace.admin'
Config.Ace.surveyCoordinate survey: /cc_marketplace_coords. Read-only.string'cc_marketplace.survey'
Config.Ace.diagnosticsRead-only diagnostics and the economy report: /cc_marketplace_status and /cc_marketplace_economy.string'cc_marketplace.diagnostics'

server/config.lua (server only)

ServerConfig.Fees

SettingWhat it doesTypeDefaultNotes
ServerConfig.Fees.listingFlatFlat fee charged when a listing is created.integer, currency units250NOT refunded if the item does not sell. That is the sink.
ServerConfig.Fees.listingPercentExtra listing fee as a percentage of the asking amount (the start price for an auction, the price for a buy-now).number, percent 0–1001.0scales the fee with the listing, so a $2m listing costs more to post than a $200 one. Floored to whole units.
ServerConfig.Fees.featuredFlatExtra fee for a featured slot at the top of the browse page.integer, currency units2500ignored when Config.Features.featured is off.
ServerConfig.Fees.commissionPercentCommission taken from the final sale amount before the seller is paid.number, percent 0–995.0this 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.commissionToWhere 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.relistDiscountPercentDiscount on the listing fee when a seller relists an unsold item straight from their claims.integer, percent 0–10050
ServerConfig.Fees.cancelFlatFee for cancelling a listing before it ends.integer, currency units0an 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

SettingWhat it doesTypeDefaultNotes
ServerConfig.Accounts.feesListing, featured and cancel fees are paid from here.'bank'
ServerConfig.Accounts.bidsBids are taken from here when placed, and buy-now purchases paid.'bank'
ServerConfig.Accounts.payoutsSale proceeds are paid into here when the seller collects.'bank'

ServerConfig.Limits

SettingWhat it doesTypeDefaultNotes
ServerConfig.Limits.activeListingsPerPlayerLive listings one character may have at once.integer10
ServerConfig.Limits.listingsPerDayListings one character may CREATE per rolling 24 hours, cancelled ones included.integer25the cap that stops list/cancel spam. Counted from the database, so a restart does not reset it.
ServerConfig.Limits.minAskSmallest asking amount for any listing.integer, currency units50
ServerConfig.Limits.maxAskLargest asking amount for any listing.integer, currency units5000000Ceilings below normally binds long before this does.
ServerConfig.Limits.maxBidLargest single bid or buy-now purchase.integer, currency units10000000must be >= maxAsk, or a listing could be created that nobody is allowed to buy. Checked on boot.
ServerConfig.Limits.bidIncrementPercentThe next bid must beat the current one by at least this percentage...number, percent5.0
ServerConfig.Limits.bidIncrementFlat...or by at least this flat amount, whichever is LARGER.integer, currency units100the flat floor is what stops a bidding war advancing $1 at a time on a cheap item.
ServerConfig.Limits.maxCountPerListingLargest stack that can go in one listing.integer500
ServerConfig.Limits.maxMetadataBytesLargest item metadata (durability, serial, quality…) accepted into escrow, as encoded JSON.integer, bytes8192an 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.softCloseSecondsA bid placed with less than this left on the clock extends the auction.integer, seconds120this is anti-sniping. 0 turns it off and auctions end exactly on time.
ServerConfig.Limits.softCloseExtendSecondsHow far each late bid extends the clock.integer, seconds120
ServerConfig.Limits.softCloseMaxExtensionsThe most times one auction can be extended.integer10without a cap, two determined bidders keep an auction open forever.
ServerConfig.Limits.pageSizeListings per browse page.integer, 1–10024
ServerConfig.Limits.maxSearchLengthLongest search string accepted.integer, characters32
ServerConfig.Limits.inventorySlotsHow many inventory slots the sell screen reads to show what can be listed.integer, 1–20050match 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.watchlistMaxLive listings one player may watch at once.integer50finished listings drop off the list and do not count.

ServerConfig.Ceilings

SettingWhat it doesTypeDefaultNotes
ServerConfig.Ceilings.defaultPer-unit ceiling for any item not listed in items.integer, currency units50000must 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.itemsPer-item overrides.map of item name -> integer, currency units per unit

ServerConfig.AltPolicy

SettingWhat it doesTypeDefaultNotes
ServerConfig.AltPolicyWhat 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

SettingWhat it doesTypeDefaultNotes
ServerConfig.Cooldowns.openUiOpening the panel.integer, ms500
ServerConfig.Cooldowns.browseBrowse, search and listing-detail reads.integer, ms250
ServerConfig.Cooldowns.sellableReading the inventory for the Sell screen.integer, ms1500one 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.listCreating a listing.integer, ms3000
ServerConfig.Cooldowns.bidPlacing a bid.integer, ms1000
ServerConfig.Cooldowns.buynowA buy-now purchase.integer, ms2000
ServerConfig.Cooldowns.cancelCancelling a listing.integer, ms2000
ServerConfig.Cooldowns.collectCollecting a claim.integer, ms1000
ServerConfig.Cooldowns.watchAdding or removing a watchlist entry.integer, ms500

ServerConfig.MaxInteractDistance

SettingWhat it doesTypeDefaultNotes
ServerConfig.MaxInteractDistance.terminalListing, and opening the panel at a terminal.number, metres4.0
ServerConfig.MaxInteractDistance.lockerCollecting from the locker crate.number, metres4.0

ServerConfig.Sweep

SettingWhat it doesTypeDefaultNotes
ServerConfig.Sweep.intervalSecondsHow often the sweep runs.integer, seconds, 1–30010an auction ends at most this long after its clock reaches zero. Lower is snappier and costs one indexed query a tick.
ServerConfig.Sweep.batchMost listings settled per sweep.integer, 1–50050a backlog after a long outage drains over a few sweeps rather than stalling one server frame.

ServerConfig.Webhooks

SettingWhat it doesTypeDefaultNotes
ServerConfig.Webhooks.defaultFallback for any channel left empty below.string URL, or ''GetConvar('cc_marketplace_webhook_default', '')
ServerConfig.Webhooks.economyEvery listing, bid, refund, sale, fee and collection, with the inputs AND the result.string URL, or ''GetConvar('cc_marketplace_webhook_economy', '')
ServerConfig.Webhooks.securityEvery 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.adminEvery admin action: force-cancels, with the actor and the listing.string URL, or ''GetConvar('cc_marketplace_webhook_admin', '')