Troubleshooting
Asking for help? Send the cc_marketplace boot line from the server console and the output of /cc_marketplace_status. Those two answer most questions.
Asking for help? Send the cc_marketplace boot line from the server console and the output of /cc_marketplace_status. Those two answer most questions.
The boot line says CLOSED
The market refuses to trade rather than trade wrongly. The reason is on the boot line.
| Server console | Cause | Fix |
|---|---|---|
CLOSED: N config error(s) | A setting is the wrong type or out of range | Each error line above it names the exact key (Config.UI.currency ('usd') must be...). Fix it and restart. |
CLOSED: database unavailable — is oxmysql started... | oxmysql not started first, or cannot connect | ensure oxmysql above ensure cc_marketplace; check mysql_connection_string. |
CLOSED: no framework money system detected (standalone) | No ESX / QBCore / Qbox / ox_core / ND running, or it starts after cc_lib | Start your framework before cc_lib. |
CLOSED: cc_lib is older than 1.2.0 (no CC.inventory.getSlot) | Old cc_lib | Update cc_lib. |
schema statement N failed; the marketplace is DISABLED: ... | The database user cannot CREATE TABLE / ALTER TABLE | Give it those rights, or run sql/install.sql and sql/migrations/*.sql by hand, then restart. |
the database is at schema N but this version knows M | You rolled back to an older build after a newer one migrated the tables | Install the newer build again. Never edit the schema table by hand. |
Errors in the server console
| You see | Cause | Fix |
|---|---|---|
Could not find dependency cc_lib | cc_lib missing or started after | Install cc_lib, ensure cc_lib before cc_marketplace. |
CC.inventory.getSlot: <inventory> cannot read a player slot | Your inventory has no numbered slots (ESX default, core_inventory) | Listing needs one that does: see Compatibility. Browse/bid/collect still work. |
N claim(s) are stuck mid-collection | The server stopped between handing something over and recording it | /cc_marketplace_claims, check the economy log, then /cc_marketplace_claim <id> reopen (player did not get it) or close (they did). Never automatic, on purpose. |
N journal entr(y/ies): money or items were in flight | The server stopped between taking money/an item and recording it | /cc_marketplace_journal, check the player's balance and the log, put it right, /cc_marketplace_journal_clear <id>. |
REFUND FAILED / ITEM NOT RETURNED | Both the hand-back and the fallback claim failed (database down) | The line carries everything needed to restore it by hand. Fix the database first. |
transaction rolled back | A race lost cleanly (two buyers in the same instant) or a database error | One-off: harmless, the player was told and charged nothing. Repeating: check MySQL's error log. |
app not added: ... (client F8) | lb-phone refused the app | Update lb-phone; or set Config.Integrations.phone = 'none' and use /marketplace. |
In game
| Symptom | Cause | Fix |
|---|---|---|
| No clerk or blip | Config.Features.peds / blips off, or the terminal is somewhere else | Check Config.Terminals[...].locations; Config.Debug = true draws the zones. |
| Clerk floats or sinks | Ground height at your coordinates | Re-survey with /cc_marketplace_coords standing on the spot. |
| Crate inside a wall, "too far" at the crate | locker.offset puts it out of reach | Move it with locker.offset; keep it within ServerConfig.MaxInteractDistance.locker (the boot line warns if not). |
| No "talk to clerk" prompt | No target resource and the native prompt is off-screen, or a target resource started after cc_lib | Start your target resource before cc_lib. |
| "Your inventory is empty" on Sell, but it is not | The inventory cannot be read by slot | See Compatibility. |
| "That item cannot be sold here" | It is in ServerConfig.Blacklist | Intended; edit the blacklist to change it. |
| "The most you can ask for that is X" | The per-unit price ceiling | ServerConfig.Ceilings.items[<item>] or .default. It exists to stop laundering. |
| Items show an icon instead of a picture | Inventory not detected, or pictures elsewhere | Config.Integrations.inventory / imagePath. |
| Cursor stuck after the panel closed | Another resource took focus at the same moment | Press Esc once; /marketplace then close. Report it with the F8 log. |
| Phone app missing | Config.Access.phoneApp off, phone not lb-phone, or phoneDefaultApp = false (it is then in the phone's app store) | See Config → Config.Access, Config.Integrations. |
| Phone app is blank | An old lb-phone without custom ui apps | Update lb-phone, or Config.Integrations.phoneMode = 'launcher'. |
| Won an auction but nothing arrived | Items and payouts are collected, never posted | Go to any auction house locker crate; the Claims tab lists what waits. |
| Outbid but money not back | They were offline | Refunded on their next load-in, automatically. |
| Text in English despite another language | setr cc_marketplace_locale "de" missing or set used | Use setr (the panel must read it). |
Before you report a bug
- The boot line and
/cc_marketplace_status. - F8 (client) lines starting with
cc_marketplaceorcc_lib. - Your framework, inventory and target resource names and versions.