Skip to content

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

VersionWhy
cc_lib1.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.
oxmysqlany currentThe database.
A framework with moneyESX Legacy, QBCore, Qbox, ox_core or NDBids and payouts are money. On bare standalone the market stays closed on purpose.
An inventory with numbered slotsox_inventory, qb/ps/lj-inventory, qs-inventory, codem-inventory, any fork with GetItemBySlotListing 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

  1. Unzip so you have resources/[cc]/cc_marketplace/fxmanifest.lua. The folder must be named cc_marketplace: exports and events use that name.
  2. In server.cfg, after your framework and inventory:
cfg
ensure oxmysql
ensure cc_lib
ensure cc_marketplace
  1. Grant the admin commands by ACE (never by job):
cfg
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
  1. Optional language (en, de, es, fr, pt). setr on purpose: the panel reads it.
cfg
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 unclaimed

OPEN 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.

  1. Stand where the clerk should be, facing the way they should face.
  2. Run /cc_marketplace_coords and paste the line into Config.Terminals[1].locations in config.lua. Add more entries for more locations: one market, many counters.
  3. Set Config.Debug = true, restart, and check the clerk and locker zones drawn in the world. Move the crate with locker.offset if it sits in a wall. Then Config.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

  • /marketplace opens 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_status shows 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.