Download
https://www.leaderos.net/plugin/gmodSource Code
https://github.com/leaderos-net/gmod-leaderos-connectInstallation
1. Download the addon
Download the latest release as a ZIP file from the link below and extract it: https://www.leaderos.net/plugin/gmod2. Upload the addon
Copy theleaderos_connect folder from the extracted ZIP into your server’s addons directory:
3. First restart
Restart your server. This will generate the config file at:4. Configure the addon
Openconfig.lua and fill in your credentials:
5. Configure server.cfg
Add the following line togarrysmod/cfg/server.cfg:
Important: This is required. Without it, Lua timers do not run when no players are on the server, and the addon will not poll the queue.
6. Final restart
Restart your server. The addon is now active. Runleaderos_status in the server console to confirm everything is working.
Configuration
| Option | Description |
|---|---|
WebsiteURL | The URL of your LeaderOS website (e.g., https://yourwebsite.com). |
APIKey | Your LeaderOS API key. Find it on Dashboard > Settings > API |
ConnectToken | Your server token. Find it on Dashboard > Store > Servers > Your Server > Server Token |
DebugMode | Set to true to enable debug logging, or false to disable it. |
CheckOnline | Set to true to check if players are online before sending commands, or false to skip this check. |
FreqMinutes | How often (in minutes) the addon polls the command queue. |
Console Commands
| Command | Description |
|---|---|
leaderos_status | Displays the current configuration and timer status. |
leaderos_reload | Reloads the config file, restarts the timer, and triggers an immediate poll. |
leaderos_poll | Triggers an immediate queue poll without restarting the timer. |
leaderos_debug | Toggles debug mode on or off. |
