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.

Game database adapters

MDC ships with two adapter shapes. Direct MySQL is the default because most FiveM hosts allow external MySQL but won't let you run extra services. Bridge is the fallback when you want MySQL to stay behind the firewall.

Direct MySQL (default)

Owner › Settings › Game DB › Direct MySQL. Provide host, port, a read-only user, password, and database name. Credentials are envelope-encrypted at rest. Framework (QBCore/ESX/custom) is auto-detected on first connect.

MDC Bridge (optional)

Useful when your host blocks external MySQL or you want extra control. Clone the resource, set a shared secret, and run the service next to your FXServer.

# On your FXServer host
git clone https://git.doughylabs.com/DoughyCAD/Doughy-CAD.git
cd Doughy-CAD/apps/bridge
cp .env.example .env
# edit .env: set BRIDGE_SHARED_SECRET, GAMEDB_* values
pnpm install
pnpm build
pnpm start

In the MDC web app, switch the adapter to Bridge and paste the URL + shared secret. Every request is HMAC-signed with a 5-minute replay window.

No game DB (manual entry)

MDC runs fine without any game DB adapter. Citizens and vehicles become manual-entry records. Useful for new communities or hosts where neither MySQL nor Bridge is an option.

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.

FiveM resource (optional)

The mdc-fivem resource adds an in-game tablet, dispatch alerts, BOLOs, panic button, and a /ticket command that writes back into MDC.

# In your server.cfg
ensure mdc-fivem
set mdc_base_url "https://doughycad.com/your-slug"
set mdc_shared_secret "${env:MDC_SHARED_SECRET}"
set mdc_framework "auto"

Officers press F6 in-game to open the tablet. The tablet iframes the MDC web app, so it's the same UI you use on desktop.

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.