Troubleshooting
Start with the server console at boot. Every problem cc_boutique can detect is printed as a [cc_boutique] line. Then run /boutique_prices (admin) to see what was detected.
Start with the server console at boot. Every problem cc_boutique can detect is printed as a [cc_boutique] line. Then run /boutique_prices (admin) to see what was detected.
Server console
| You see | Cause | Fix |
|---|---|---|
Couldn't load resource cc_boutique / could not find dependency cc_lib | cc_lib missing or started after cc_boutique | install cc_lib 1.13+, ensure cc_lib before ensure cc_boutique |
could not find dependency oxmysql | oxmysql missing | install oxmysql and ensure it first |
[cc_boutique] config: ... (red) and "the boutique is closed" | a setting is wrong. The line names it | fix that setting (CONFIG.md) and restart the resource. The shop refuses to open until then |
config: ServerConfig.Prices.<id> is missing | a piece in Config.Items has no price | add it to ServerConfig.Prices, or remove it from the shelf |
config: ... category "x" is not in Config.Categories | typo in a category | match the names in Config.Categories |
attempt to index a nil value (global 'CC') | @cc_lib/init.lua did not load | cc_lib is not started, or the folder is not named cc_lib |
prices for the week of ... from a fallback median | no wealth source yet | normal without cc_ledger. Set Pricing.fallbackMedian to suit your economy |
migration N skipped: ... | an old MySQL/MariaDB rejected an index statement | harmless: the shop works without the index. Upgrade MariaDB 10.5+ to apply it |
re-price failed: ... | the database was unreachable | check oxmysql's connection string. It retries every checkMinutes |
treasury refused $N / society "x" refused $N | the revenue target is not set up | check the society exists (or cc_government's source key). The sale itself went through |
could not register usable item 'lux_...' | cc_lib found no supported inventory registration | add the items to your inventory (INSTALL.md step 2) and check cc_lib detects your inventory |
In game (F8)
| You see | Cause | Fix |
|---|---|---|
| No blip, no assistant, no target option | the client found a config problem (red F8 line), or the resource did not start | read F8 and fix the named setting |
| Target option appears, nothing opens, "Stand at the boutique counter." | you are further than reach from the counter coords | stand closer, or raise reach (max 25) |
| "The boutique is closed." | the server config failed validation | see the red server console lines |
Page opens blank or shows ui.name-style keys | locales/*.json missing from the zip, or invalid JSON in your translation | re-copy locales/. Check your JSON in a validator |
| Item pictures missing in the shop | the image file named in Config.Items[].image is not in web/img/ | add the PNG there (names are case-sensitive) |
| Item pictures missing in the inventory | images were not copied to the inventory | copy web/img/lux_*.png to your inventory's image folder |
| "Not enough money in that account." with enough money | Config.Payments[].account is not one of cc_lib's names | use cash, bank or black. cc_lib maps them to your framework (never money or black_money) |
| "You can't carry it." | inventory full or overweight | free space, or lower the item weight in your inventory |
| "The sale did not go through. You were not charged." | the inventory refused the item after payment, so it was refunded | the item is probably missing from your inventory's item list (INSTALL.md step 2) |
| "This piece can't be sold to you right now." | a cc_boutique:beforeBuy hook refused it | expected if you wrote one. Check your hook |
| Using a watch does nothing, or deletes it (ox_inventory) | the item entry lacks server = { export = 'cc_boutique.useItem' } or has consume other than 0 | use the entries in install/ox_inventory/items.lua exactly |
| Using a piece says "a fine piece" | no title or furniture system is running, so it is a keepsake | install cc_coins / tcc-housing, or add a cc_boutique:use hook |
| "That can't be done right now." when hanging art | tcc-housing refused the grant (the piece was given back) | add the decor catalogue ids to tcc-housing |
| Mouse stuck after the page closed | another resource holds NUI focus | restart cc_boutique. If it persists, the other resource is the cause |
| Prices did not change on Monday | they move at most maxStep % a week, or the median did not change | /boutique_prices shows this week and last week. /boutique_reprice applies new shares/floors now |
Performance
resmon should show 0.00 ms for cc_boutique when no one is at the counter, and about 0.01 ms while the page is open. More than that means another resource is calling its exports in a loop.
Still stuck?
Open a ticket in the Code Cartel Discord with:
- the
[cc_boutique]and[cc_lib]lines from the server console at boot - the output of
/boutique_pricesfrom the console - your framework, inventory and target resource names and versions