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 newer | the Code Cartel bridge (free, included with every Code Cartel product) |
| oxmysql | the database |
| A framework | ESX Legacy, QBCore, Qbox, ox_core, or none (standalone through cc_lib) |
| An inventory | ox_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
- Put
cc_boutiquein your resources folder and addensure cc_boutiqueaftercc_libandoxmysql. - Add the 8 items to your inventory from
install/(ox_inventory, qb-core, or the ESX SQL file) and copyweb/img/lux_*.pngto your inventory's image folder. - Grant the admin ACE:
add_ace group.admin cc_boutique.admin allow. - Restart. The tables are created on their own. Walk to Vinewood Boulevard or move the counter (see INSTALL.md).
Documentation
| INSTALL.md | step-by-step install for each framework, and moving the counter |
| CONFIG.md | every setting in config.lua and server/config.lua |
| EXPORTS.md | exports, hooks and events for developers |
| COMPATIBILITY.md | what works with what, and how each is detected |
| TROUBLESHOOTING.md | common F8 and server console errors and their fixes |
| CHANGELOG.md | version history |
Admin commands
| Command | Does |
|---|---|
/boutique_prices | lists this week's prices and what was detected (wealth source, titles, decor, revenue) |
/boutique_reprice | re-prices this week now, after you edit shares or floors (still within the weekly cap) |
/boutique_where | prints 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.