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
- Download
cc_boutiquefrom your Cfx.re Keymaster (Granted Assets) and put thecc_boutiquefolder in your resources, for exampleresources/[codecartel]/cc_boutique. Keep the folder namecc_boutique. The events, exports and item hooks use it. - Make sure
cc_lib(1.13.0 or newer) andoxmysqlare installed. - In
server.cfg, start it after them:
ensure oxmysql
ensure cc_lib
# your framework, inventory and target here
ensure cc_boutique2. Items
The shop sells 8 items, lux_watch_gold to lux_art_vase. Add them to your inventory. Ready-made entries are in install/:
| Inventory | File | Where it goes |
|---|---|---|
| ox_inventory (ESX, QBCore, Qbox, ox_core) | install/ox_inventory/items.lua | inside return { } of ox_inventory/data/items.lua |
| qb-inventory / ps / lj (QBCore) | install/qb-core/items.lua | inside QBShared.Items in qb-core/shared/items.lua |
| ESX default inventory | install/esx/items.sql | run once against your database |
| Another inventory | use the qb-core or ESX file as a guide | name, 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
add_ace group.admin cc_boutique.admin allowThis 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:
- Stand where the shop assistant should stand, facing the way they should face.
- Run
/boutique_where. It prints a line likecoords = vec4(295.08, 186.30, 104.37, 160.0),. - Paste it into
Config.Shopsinconfig.lua. Setped = falseif your MLO has its own counter staff. Setblip = falseto hide it from the map. - 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 setPricing.mode = 'fixed'to make every price itsfloor. - 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
| Install | And pieces do this |
|---|---|
| cc_coins | watches and jewellery unlock titles. Add the titles in ServerConfig.Prices[*].title to cc_coins as grant-only titles that are never sold. |
| tcc-housing | art goes into furniture storage. Add catalogue entries with the ids in ServerConfig.Prices[*].decor. |
| cc_ledger | prices follow your real median wealth |
| cc_government | Revenue.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 $500000There 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 nowConfig.Shops(a list).- Item labels are now set in
Config.Items[].label. ServerConfig.Repriceis nowServerConfig.Pricing.ServerConfig.accountsis nowConfig.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.