Skip to content

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)
oxmysqlrequired for the business suite and saved layouts
a frameworkoptional: Qbox, QBCore, ESX Legacy, ox_core, or none (standalone)
ox_inventoryoptional: only supply-order delivery bays and buy-order stashes need it
ox_liboptional: its dialogs are used when it runs

2. Files

  1. Unzip cc_business into your resources folder. Keep the folder name cc_business.
  2. Make sure cc_lib is installed (same rule: folder name cc_lib).

3. Items

Add the items for your inventory from install/items/:

InventoryFile
ox_inventoryinstall/items/ox_inventory.lua → paste into ox_inventory/data/items.lua
qb-inventory / ps / ljinstall/items/qb-inventory.lua → paste into qb-core/shared/items.lua
ESXrun 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

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 allow

Then 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) created

In 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

WantDo
your server's name on the tabletsetr cc_business_brand "Your City"
your own logosetr cc_business_logo image and drop mark.png + crest.png into web/tablet/brand/
staff Discord logsset cc_business_stafflog_admin / _economy / _staff / _stock / _security "<webhook>" (see docs/STAFF-LOGS.md)
jg-mechanic / jg-dealerships, jim-payments, lb-phone, doorlocksinstall/suite/INTEGRATIONS.md (each is detected; switch in AccConfig.Integrations)
another banking script for society moneyAccServerConfig.SocietyBackends in server/acc/sv_config.lua
boss menu when the suite is offConfig.BossMenu in config.lua
a translationcopy 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.