cc_business: install
About five minutes. You never run SQL by hand: tables are created on the first boot and migrated on every boot after that.
About five minutes. You never run SQL by hand: tables are created on the first boot and migrated on every boot after that.
1. Requirements
| cc_lib 1.6.0+ | required (the Code Cartel bridge; free) |
| oxmysql | required for the business suite and saved layouts |
| a framework | optional: Qbox, QBCore, ESX Legacy, ox_core, or none (standalone) |
| ox_inventory | optional: only supply-order delivery bays and buy-order stashes need it |
| ox_lib | optional: its dialogs are used when it runs |
2. Files
- Unzip
cc_businessinto your resources folder. Keep the folder namecc_business. - Make sure
cc_libis installed (same rule: folder namecc_lib).
3. Items
Add the items for your inventory from install/items/:
| Inventory | File |
|---|---|
| ox_inventory | install/items/ox_inventory.lua → paste into ox_inventory/data/items.lua |
| qb-inventory / ps / lj | install/items/qb-inventory.lua → paste into qb-core/shared/items.lua |
| ESX | run install/items/esx.sql |
cc_meal, cc_drink and cc_snack are required for cooking. businesstablet opens the tablet (the /businesstablet command works without it).
4. server.cfg
ensure oxmysql
ensure cc_lib
ensure qbx_core # or qb-core / es_extended / ox_core (leave out for standalone)
ensure cc_business # RIGHT AFTER the framework: see "Ensure order" below
add_ace group.admin cc_business.admin allowThen paste install/convars.cfg into your server.cfg (or a secrets file it execs) and fill in what you use. Every line is optional. Webhooks and secrets use set, never setr.
Ensure order
Every business is a framework job with the same id. Qbox and QBCore reset a player to unemployed at login if their saved job does not exist yet, so cc_business must start right after the framework, before players join. On Qbox and QBCore cc_business creates the jobs itself at every boot. On ESX and ox_core, create the job in the framework first, then create the business with the same id. A business whose id is an existing job is attached, never overwritten.
5. Start
Restart the server and read the boot line:
cc_business 3.0.0 | framework: qbox | backend: suite | database: ready | 0 business(es), 0 job(s) createdIn game, as an admin: /business opens the creator. Create a business, place an office, a register and a duty point, then open the tablet (/businesstablet).
6. Optional
| Want | Do |
|---|---|
| your server's name on the tablet | setr cc_business_brand "Your City" |
| your own logo | setr cc_business_logo image and drop mark.png + crest.png into web/tablet/brand/ |
| staff Discord logs | set cc_business_stafflog_admin / _economy / _staff / _stock / _security "<webhook>" (see docs/STAFF-LOGS.md) |
| jg-mechanic / jg-dealerships, jim-payments, lb-phone, doorlocks | install/suite/INTEGRATIONS.md (each is detected; switch in AccConfig.Integrations) |
| another banking script for society money | AccServerConfig.SocietyBackends in server/acc/sv_config.lua |
| boss menu when the suite is off | Config.BossMenu in config.lua |
| a translation | copy locales/en.json and locales/tablet.en.json, then setr cc_business_locale "xx" |
Updating from 2.x
Drop the new folder over the old one, keeping your edited config files. Nothing is renamed. New in 3.0.0: Config.BossMenu, AccServerConfig.Vacancies, AccServerConfig.Retention, TrustedResources.jobcentre. Missing keys take their defaults. If you set setr cc_business_logo legacy, it now means image: put your own mark.png and crest.png in web/tablet/brand/. 3.0.0 ships no artwork. Tables migrate on boot.
Coming from another business resource
If your old tables are acc_businesses / acc_business_*: ccbimport acc in the server console (a dry run), then ccbimport acc confirm. README → Moving your data over.