Installing cc_marketplace
About ten minutes on a server that already runs a framework. Nothing to import by hand: the tables create themselves on the first start.
About ten minutes on a server that already runs a framework. Nothing to import by hand: the tables create themselves on the first start.
1. What you need
| Version | Why | |
|---|---|---|
| cc_lib | 1.7.0 or newer (1.2.0 is the hard floor) | The bridge to your framework, inventory, target and notify. Free from The Code Cartel. Below 1.2.0 the market stays closed and says why; 1.6.0 adds phone notifications, 1.7.0 the shared homebar. |
| oxmysql | any current | The database. |
| A framework with money | ESX Legacy, QBCore, Qbox, ox_core or ND | Bids and payouts are money. On bare standalone the market stays closed on purpose. |
| An inventory with numbered slots | ox_inventory, qb/ps/lj-inventory, qs-inventory, codem-inventory, any fork with GetItemBySlot | Listing reads the item out of a slot. See Compatibility. |
Optional: a target resource (ox_target, qb-target, or none: a native prompt is used), lb-phone (an in-phone app), any phone cc_lib knows (push notifications).
2. Drop it in
- Unzip so you have
resources/[cc]/cc_marketplace/fxmanifest.lua. The folder must be namedcc_marketplace: exports and events use that name. - In
server.cfg, after your framework and inventory:
ensure oxmysql
ensure cc_lib
ensure cc_marketplace- Grant the admin commands by ACE (never by job):
add_ace group.admin cc_marketplace.admin allow # force-cancel, decide stuck claims
add_ace group.moderator cc_marketplace.diagnostics allow # status, economy report, stuck-claim list
add_ace group.moderator cc_marketplace.survey allow # /cc_marketplace_coords- Optional language (
en,de,es,fr,pt).setron purpose: the panel reads it.
setr cc_marketplace_locale "en"3. Start it once
Restart the server (or ensure cc_marketplace). The console prints one line:
cc_marketplace 1.2.0 | OPEN | framework: qbox | database: ready | 1 terminal(s) | 0 live, 0 due, 0 unclaimedOPEN means it is trading. CLOSED: names what to fix; see Troubleshooting.
4. Put the auction house where you want it
The shipped clerk stands at a placeholder in Legion Square.
- Stand where the clerk should be, facing the way they should face.
- Run
/cc_marketplace_coordsand paste the line intoConfig.Terminals[1].locationsinconfig.lua. Add more entries for more locations: one market, many counters. - Set
Config.Debug = true, restart, and check the clerk and locker zones drawn in the world. Move the crate withlocker.offsetif it sits in a wall. ThenConfig.Debug = false.
Prefer keeping your changes out of the shipped file? Copy presets/_example.lua and presets/server/_example.lua, rename the preset inside both, and set Config.Preset.
5. Tune the economy
Open server/config.lua:
ServerConfig.Fees: listing fee, commission and where it goes ('burn'or'society:<job>').ServerConfig.Ceilings: the per-unit price cap for each item. It binds bids too, and it is your defence against laundering money to an alt. Set it for your economy.ServerConfig.Blacklist: items that may never be listed (cash items, keys, police kit).
Every setting is explained where it lives; Config lists them all in one table.
6. Check it
/marketplaceopens the panel from anywhere (browse and bid).- At the clerk: Sell an item, see it in My listings.
- From a second character: bid, let it end (pick the 1-hour duration), collect at the crate.
/cc_marketplace_statusshows open/closed, live listings and anything stuck.
Updating
Replace the folder, keep your config.lua, server/config.lua, presets/ and custom/. Read CHANGELOG.md (in the resource folder) for any new setting: new ones always have a default, and a config from an older version keeps working. Schema changes apply themselves on start.
Related: README, Exports, Compatibility.