Modern Control Agent 0.9.0
================================

This ZIP contains ONLY the agent addon (code).
It does NOT include pairing credentials or config.json.
Your server-specific pairing config comes from the Modern Control dashboard
after you create a server.

------------------------------------------------
PART 1 - Install the addon
------------------------------------------------

1. Extract this ZIP.
2. You should see exactly ONE folder:

     modern_darkrp_control/

   Inside it:

     addon.txt
     INSTALL.txt   (this file)
     lua/

3. Copy THAT ONE folder into your DEDICATED Garry's Mod server (srcds):

     garrysmod/addons/modern_darkrp_control/

   Final result:

     garrysmod/
       addons/
         modern_darkrp_control/
           addon.txt
           lua/
           ...

NOT the Steam client folder (Steam\steamapps\common\GarrysMod).
Only the dedicated-server garrysmod that players connect to.
Do not nest folders (avoid addons/modern_darkrp_control/modern_darkrp_control/).
Do not put credentials inside the addon folder.

------------------------------------------------
PART 2 - Create your server in Modern Control
------------------------------------------------

1. Sign in to Modern Control.
2. Open Platform -> Downloads and download the Agent ZIP (or use /downloads).
3. Open Platform -> Servers.
4. Click Add Server.
5. Enter a display name and create the server.

------------------------------------------------
PART 3 - Pair the server (separate from this ZIP)
------------------------------------------------

The pairing configuration is NOT included in this ZIP.
It is generated specifically for your server and contains credentials.

1. In the dashboard pairing step, use:
     Download pairing config.json   or   Copy config

2. On your DEDICATED server (not Steam client), create this folder if needed:

     garrysmod/data/modern_darkrp_control/

3. Save the downloaded/copied file as:

     garrysmod/data/modern_darkrp_control/config.json

First-time installs normally do NOT already have that data folder - create it.
If you close the wizard, use Resume download (same browser session) or
Generate new pairing config (invalidates unused previous codes).

------------------------------------------------
PART 4 - Restart
------------------------------------------------

Restart the dedicated server (srcds) after placing config.json.
Do not restart only the Steam client Garry's Mod.

------------------------------------------------
PART 5 - Verify
------------------------------------------------

In the GMod server console, run:

  mdrp_status

Success looks like: agent enabled, paired/connected, heartbeats succeeding.
Do not paste secrets, pairing tokens, or agent secrets into support chats.

In the dashboard, Platform -> Servers should move from Waiting for Pairing
to Online (usually within about 10-60 seconds).

Docs: /docs/installation
Downloads: /downloads
