Documentation

Everything you need to set up your tenant, connect your game DB, and get officers signed in. Most communities are live in fifteen minutes.

Getting started

Sign in with Discord to create your tenant. The first user becomes the owner. Owners can delegate command.* capabilities to other roles later (see Permissions).

  1. Click Start free on the home page.
  2. Authorize with Discord. We ask for identify, email, and guilds.
  3. Pick a slug. Your tenant lives at doughycad.com/your-slug on the free tier.
  4. Create your first department (PD, SO, Fire, EMS, etc.) from Tenant › Departments.
  5. Optional: link your Discord guild and map roles to MDC ranks.

Permissions (three-tier RBAC)

MDC has three capability tiers. The owner gets everything in their own tenant. Other roles get the Officer tier by default, and the owner delegates Command capabilities per role.

Game integration

Doughy CAD talks to your FiveM server through two complementary channels, both configured per-tenant in Tenant › Game integration:

Both are optional. With neither, you can still use Doughy CAD in manual-entry mode.

MySQL connection

In Tenant › Game integration › MySQL provide:

QBCore, QBox, and ESX get auto-loaded schema templates so lookups work immediately. For custom frameworks or schema drift, the panel opens a schema mapper that lets you point Doughy CAD at the right tables and columns without touching any code. The connection is read-only; Doughy CAD never writes to your game DB.

mdc-fivem resource

  1. Download the resource from Tenant › Game integration › Resource.
  2. Drop it into your resources/ folder.
  3. Add to server.cfg:
# In your server.cfg
ensure mdc-fivem
set mdc_base_url "https://doughycad.com/your-slug"
set mdc_shared_secret "sk_tenant_xxxxxxxxxxxxxxxx"
set mdc_framework "auto"   # qbcore, qbox, esx, or auto

The shared secret comes from the panel (Tenant › Game integration › Resource). Restart your server and you're live.

How the resource flows

Without a game

If you don't have FiveM at all (or you want to test the platform before wiring anything), Doughy CAD runs fine in manual-entry mode. Add citizens, vehicles, and incidents by hand in the web app; wire MySQL or the resource whenever you're ready.

API reference

Public read APIs live under /api/public/*. Authenticated tenant APIs live under /api/tenants/:slug/*. The Bridge API is documented in the repo at apps/bridge/README.md. We'll publish a full OpenAPI spec before v1.0.

Support

Free and Pro communities get email support (replies within one business day). Agency plans get priority support and a dedicated contact. Join the community Discord for everything else.