Skip to content

Installing cc_boutique

About 10 minutes. Nothing here edits another resource except adding 8 items to your inventory.

About 10 minutes. Nothing here edits another resource except adding 8 items to your inventory.

1. Files

  1. Download cc_boutique from your Cfx.re Keymaster (Granted Assets) and put the cc_boutique folder in your resources, for example resources/[codecartel]/cc_boutique. Keep the folder name cc_boutique. The events, exports and item hooks use it.
  2. Make sure cc_lib (1.13.0 or newer) and oxmysql are installed.
  3. In server.cfg, start it after them:
cfg
ensure oxmysql
ensure cc_lib
# your framework, inventory and target here
ensure cc_boutique

2. Items

The shop sells 8 items, lux_watch_gold to lux_art_vase. Add them to your inventory. Ready-made entries are in install/:

InventoryFileWhere it goes
ox_inventory (ESX, QBCore, Qbox, ox_core)install/ox_inventory/items.luainside return { } of ox_inventory/data/items.lua
qb-inventory / ps / lj (QBCore)install/qb-core/items.luainside QBShared.Items in qb-core/shared/items.lua
ESX default inventoryinstall/esx/items.sqlrun once against your database
Another inventoryuse the qb-core or ESX file as a guidename, label, weight, unique/not stackable

Then copy web/img/lux_*.png into your inventory's image folder (ox_inventory/web/images/, qb-inventory/html/images/, and so on).

ox_inventory only: each entry has server = { export = 'cc_boutique.useItem' } and consume = 0. Keep both. They hand every use to cc_boutique, which decides whether the piece stays (titles, keepsakes) or is removed (art that went to furniture storage). On other inventories cc_boutique registers the items as usable itself.

3. Database

Nothing to do. On start the resource creates cc_boutique_prices and cc_boutique_sales and applies any migrations. If your database user may not create tables, run sql/install.sql once by hand.

4. Permissions

cfg
add_ace group.admin cc_boutique.admin allow

This allows /boutique_prices, /boutique_reprice and /boutique_where. Change the name in Config.AdminAce if you use a different scheme.

5. Where the shop is

The default counter is on Vinewood Boulevard in the vanilla map. To move it, or add more:

  1. Stand where the shop assistant should stand, facing the way they should face.
  2. Run /boutique_where. It prints a line like coords = vec4(295.08, 186.30, 104.37, 160.0),.
  3. Paste it into Config.Shops in config.lua. Set ped = false if your MLO has its own counter staff. Set blip = false to hide it from the map.
  4. Restart cc_boutique.

6. Prices and where the money goes

Open server/config.lua:

  • No cc_ledger? Prices are worked out from Pricing.fallbackMedian, which defaults to $500,000. Set it to roughly what an active player is worth on your server. You can also set Pricing.mode = 'fixed' to make every price its floor.
  • Money: Revenue.mode = 'none' (the default) destroys it, which makes the shop a money sink. 'society' pays it to a job account. 'cc_government' pays it to the city treasury.

After editing prices, run /boutique_reprice (or wait for the weekly re-price). See CONFIG.md for every option.

7. Optional extras

InstallAnd pieces do this
cc_coinswatches and jewellery unlock titles. Add the titles in ServerConfig.Prices[*].title to cc_coins as grant-only titles that are never sold.
tcc-housingart goes into furniture storage. Add catalogue entries with the ids in ServerConfig.Prices[*].decor.
cc_ledgerprices follow your real median wealth
cc_governmentRevenue.mode = 'cc_government' pays sales into the treasury

Without any of them, every piece is a keepsake. Developers can attach their own uses through the cc_boutique:use hook (EXPORTS.md).

8. Check it

Restart the server and look for these lines in the console:

[cc_boutique] prices for the week of 2027-01-04 from a fallback median of $500000

There should be no red [cc_boutique] config: lines. In game, walk to the counter, open the boutique, and buy something cheap. /boutique_prices shows what was detected.

Something wrong? See TROUBLESHOOTING.md.

Upgrading from 1.x

The tables are the same and migrate in place, so prices and sales are kept. Replace config.lua and server/config.lua with the 2.0 versions and copy your values across:

  • Config.Shop (one shop) is now Config.Shops (a list).
  • Item labels are now set in Config.Items[].label.
  • ServerConfig.Reprice is now ServerConfig.Pricing.
  • ServerConfig.accounts is now Config.Payments.
  • The cc_government treasury is now ServerConfig.Revenue = { mode = 'cc_government', source = 'luxury' }. It is no longer the default.
  • ox_lib and ox_inventory are no longer required.