Skip to content

cc_boutique

A luxury boutique for FiveM whose prices follow your server's wealth. Players buy watches, jewellery and art. Each piece does something when they use it, and the prices move with the economy one week

A luxury boutique for FiveM whose prices follow your server's wealth. Players buy watches, jewellery and art. Each piece does something when they use it, and the prices move with the economy one week at a time, so luxury stays a luxury.

By The Code Cartel. Version 2.0.0.

What it does

  • Prices follow the economy. Each piece costs a share (%) of the median wealth of your active characters, with a floor. Prices are set once a week and move at most 10% (you choose the cap). The median comes from cc_ledger, a fixed figure you set, or your own source through one hook. You can also switch to plain fixed prices.
  • Every piece has a use.
    • Watches and jewellery unlock a title on the player card when cc_coins is installed. The piece stays with the player, so they can show it off or give it away.
    • Art goes into the character's furniture storage, ready to place in a home, when tcc-housing is installed. If the grant fails, the exact piece is put back.
    • Without those, every piece is a keepsake engraved with its buyer and date. Your own resource can replace any use with one hook.
  • A money sink by default. Sales money leaves the economy. You can send it to a society account (qb-management, esx_society, Renewed-Banking and others through cc_lib) or to cc_government's treasury instead.
  • Many counters, one shelf. Put a counter in any MLO, with or without a shop assistant or blip. Assistants are only spawned near players.
  • Secure by design. The page sends two numbers: which piece and which account. The server reads the price, checks the balance, checks you can carry it, takes the money, gives the item, and refunds if the item cannot be added. Purchases are distance-checked against the nearest counter, rate-limited and one at a time.
  • Runs on any framework. ESX Legacy, QBCore, Qbox, ox_core or standalone, through cc_lib. Inventory, target, notify and banking are detected at runtime.
  • 0.00 ms at rest. There is no per-frame work. The client checks every 1.5 s which assistant to spawn, and the server checks every 10 minutes whether the week has changed.

Requirements

cc_lib 1.13.0 or newerthe Code Cartel bridge (free, included with every Code Cartel product)
oxmysqlthe database
A frameworkESX Legacy, QBCore, Qbox, ox_core, or none (standalone through cc_lib)
An inventoryox_inventory, qb-inventory, ps/lj-inventory, ESX default, and the others cc_lib supports

Optional: cc_ledger (wealth-based prices), cc_coins (titles), tcc-housing (art in homes), cc_government (treasury), any target resource (otherwise a native "[E]" prompt is shown).

Quick start

  1. Put cc_boutique in your resources folder and add ensure cc_boutique after cc_lib and oxmysql.
  2. Add the 8 items to your inventory from install/ (ox_inventory, qb-core, or the ESX SQL file) and copy web/img/lux_*.png to your inventory's image folder.
  3. Grant the admin ACE: add_ace group.admin cc_boutique.admin allow.
  4. Restart. The tables are created on their own. Walk to Vinewood Boulevard or move the counter (see INSTALL.md).

Documentation

INSTALL.mdstep-by-step install for each framework, and moving the counter
CONFIG.mdevery setting in config.lua and server/config.lua
EXPORTS.mdexports, hooks and events for developers
COMPATIBILITY.mdwhat works with what, and how each is detected
TROUBLESHOOTING.mdcommon F8 and server console errors and their fixes
CHANGELOG.mdversion history

Admin commands

CommandDoes
/boutique_priceslists this week's prices and what was detected (wealth source, titles, decor, revenue)
/boutique_repricere-prices this week now, after you edit shares or floors (still within the weekly cap)
/boutique_whereprints your position as a ready-to-paste coords = vec4(...) line

All three need the ACE in Config.AdminAce (default cc_boutique.admin) and work from the server console.

Support

Open a ticket in the Code Cartel Discord with your server console output from start-up (the [cc_boutique] lines) and the output of /boutique_prices.