https://github.com/shockpast/gmcl_drpc
📺 Discord Rich Presence for Garry's Mod (binary module)
https://github.com/shockpast/gmcl_drpc
discord discord-rpc drpc garrysmod gmod gmod-module
Last synced: about 2 months ago
JSON representation
📺 Discord Rich Presence for Garry's Mod (binary module)
- Host: GitHub
- URL: https://github.com/shockpast/gmcl_drpc
- Owner: shockpast
- Created: 2024-12-15T13:26:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T00:11:55.000Z (about 1 year ago)
- Last Synced: 2025-03-31T23:51:08.975Z (12 months ago)
- Topics: discord, discord-rpc, drpc, garrysmod, gmod, gmod-module
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord Rich Presence for Garry's Mod
A binary module that implements Discord Rich Presence functionality for Garry's Mod, allowing you to display detailed game status in your Discord profile.
## Installation
1. Download the latest release from the [releases page](https://github.com/shockpast/gmcl_drpc/releases/latest)
2. Place the binary module in your Garry's Mod `garrysmod/lua/bin` folder
## Usage
```lua
-- 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()
```
## Building
### Prerequisites
- [garrysmod_common](https://github.com/danielga/garrysmod_common) *(x86-64-support-sourcesdk)*
- [Discord RPC SDK](https://github.com/harmonytf/discord-rpc)
- Premake5
### Steps
1. Clone the repository
2. Place Discord RPC SDK files in `source/dependencies/windows` *(from latest action)*
3. Run `premake5 vs2019` (or your preferred generator)
4. Build the solution