Discord Rich Presence support for Garry's Mod!
Notice: This script is completely safe and won't get you banned from Discord.
How does it work?
This script makes your game client send HTTP requests to your Discord client's RPC server in order to change your Rich Presence according to what you feed it.
It is completely clientside and your server won't have anything to do with the add-on except serving the files for your players, so no weird server HTTP requests to be worrying about!
- Clone the repository or simply download its latest version.
- Extract the contents of the zip file you downloaded in the
addonsfolder located in your game's installation directory. (Default, on Windows:
C:\Program Files (x86\Steam\steamapps\common\Garry's Mod\garrysmod). You can remove the
imgdirectory from the add-on's folder, it's only used for providing images in this file. (Might cause issues while trying to pull if you cloned this repository though)
- Setup your own Discord application, and grab its client ID.
- Put the client ID you got for the
You'll probably want to make a custom state for your server / gamemode, I recommend you look at the
example.lua states for an idea of how that works.
This should work flawlessly on any version of Discord and Garry's Mod. If it doesn't, don't hesitate to create an issue.
If the script ends up creating Lua errors internally (not caused by your custom states logic), please create an issue with the error and the output from your console around
[Discord RPC] stuff. This applies to the default state too, if it breaks, tell me.