Skip to content

cc_business staff logs

Every state-changing cc_business action is posted to your staff Discord by one logger, server/stafflog.lua. Make one text channel per row below, then put a webhook per channel in your server config wi

Every state-changing cc_business action is posted to your staff Discord by one logger, server/stafflog.lua. Make one text channel per row below, then put a webhook per channel in your server config with set (never setr). An empty convar turns that channel off.

Channels

Discord channelConvar (set, never setr)ColourWhat lands there
#business-admincc_business_stafflog_adminbluelayout editor (create, update, anchor, delete, point add/move/duplicate/update/delete, board), preset import, business created, registry (register, approve, reject, suspend, reactivate, owner), licence settings and renewals, work zones, profiles, webhooks saved (URLs redacted), job board and announcements, ratings, admin exports
#business-economycc_business_stafflog_economygreenevery society balance write with before → after (AddBalance, RemoveBalance, DebitBalance, CreditBalance, UpdateBusinessIncome, ReverseIncome, ProcessRefund, ReverseRefund), POS sales and refunds, payment requests, register charges, shop and shelf buys, shop/shelf prices, deposits, withdrawals, payroll and adjustments, tax and fee bills, registration fees, government treasury, loyalty points/stamps, customers, POS menu, money exports (AddMoney, RemoveMoney)
#business-staffcc_business_stafflog_staffpurplehire, fire, staff access and grades, staff profiles, duty on/off, clock in/out, lb-phone duty, job centre ads and applications, memberships (issue, renew, status, number, templates, door bindings, applications, photos)
#business-stockcc_business_stafflog_stockyellowevery AccGrant move (toPlayer, fromPlayer, toStash, clearStash), creator grants (craft, supply, store, shelf stock/withdraw/buy, order delivery), cooking finish, NPC orders (accept, deliver, abandon), supply orders and deliveries (incl. admin cancel/force/reseed/resend), garage take/store/spawn
#business-securitycc_business_stafflog_securityredevery CC.security.flag (schema/cooldown/distance refusals, denied editor/admin actions), admin mode switched on, and the rate-cap notice if a channel overflowed

cc_business_stafflog_default catches any channel left unset. Each channel convar falls back to the older cc_business_webhook_, then the default.

Every embed carries

  • Actor — character name (sanitised), citizenid, server id. console / server for threads; exports carry Called by (the calling resource, e.g. your admin panel).
  • Business — the business id.
  • Action — the full event or function name.
  • Amount — when there is one, as $1,234.
  • Before / After — balance writes and edits that carry them.
  • Arguments — every event argument by its schema name (request ids dropped).
  • Location — the actor's coordinates, read server-side.
  • Footer — cc_business | <channel> | <UTC time>.

Never logged: webhook URLs (), keys named webhook/token/secret/password (), data URLs (photos), IPs, identifier lists, inventories.

How coverage is guaranteed

  1. server/stafflog.lua loads first and wraps CC.security.event, so every net event — the creator's and the suite's (Suite.event, Suite.mutation, Suite.request) — logs after its handler accepts it. A handler returning false (refused) is not logged as an action.
  2. Suite.callback (the tablet's mutating door, AccMoney.mutation, AccGated.mutation) logs in server/acc/gate.lua.
  3. Write exports (Add*, Remove*, Set*, Admin*, …) log with the calling resource.
  4. The balance writers and AccGrant log the numbers; when they do, the event's generic line is skipped so one action is one embed.
  5. tests/verify_stafflog.lua (verify section 10) fails if a server file registers outside these doors, if the creator calls CC.logger directly, or if the sanitiser lets a mention, markdown, invisible character or webhook URL through.

Quiet (not logged, by decision)

Using a point, sitting/standing, teleporting inside a business, cook start (the finish logs), UI notifies, job centre ped sync, ringing phones (job centre and board), nearby-membership display/photo capture, switching the active business in the tablet. Verify refuses a quiet event that routes to economy.

Muting (F6)

AccServerConfig.Logs in server/acc/sv_config.lua: events[''] = false mutes one event, channels. = false mutes a whole channel. security can never be muted. Empty by default, so everything logs.

Limits

Sending is CC.logger: per-URL queue flushed every 1.5 s, 10 embeds per request, 429 retry_after honoured, queue capped at 500, flushed on resource stop, allowed_mentions empty on every request. On top, each channel is capped at 240 embeds a minute; a drop is reported in the channel the next minute.