A binary module that implements Discord Rich Presence functionality for Garry's Mod, allowing you to display detailed game status in your Discord profile.
- Download the latest release from the releases page
- Place the binary module in your Garry's Mod
garrysmod/lua/bin
folder
-- Initialize Discord RPC with your application ID
DiscordRPC.Initialize("YOUR_APP_ID")
-- Update your presence
DiscordRPC.UpdatePresence({
details = "Playing on a server",
state = "In Game",
large_image_key = "game_logo",
large_image_text = "Garry's Mod",
small_image_key = "status_icon",
small_image_text = "Online",
party_size = 1,
party_max = 32,
buttons = {
{
label = "Join Game",
url = "steam://connect/..."
}
}
})
-- Shutdown when done
DiscordRPC.Shutdown()
- garrysmod_common (x86-64-support-sourcesdk)
- Discord RPC SDK
- Premake5
- Clone the repository
- Place Discord RPC SDK files in
source/dependencies/windows
(from latest action) - Run
premake5 vs2019
(or your preferred generator) - Build the solution