Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shockpast/gmcl_drpc
🕹 Discord Rich Presence for Garry's Mod
https://github.com/shockpast/gmcl_drpc
discord discord-rpc discordrpc drpc garrysmod gmod gmod-module rich-presence
Last synced: about 1 month ago
JSON representation
🕹 Discord Rich Presence for Garry's Mod
- Host: GitHub
- URL: https://github.com/shockpast/gmcl_drpc
- Owner: shockpast
- Created: 2024-12-13T17:46:13.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-13T18:15:09.000Z (about 2 months ago)
- Last Synced: 2024-12-13T18:36:58.143Z (about 2 months ago)
- Topics: discord, discord-rpc, discordrpc, drpc, garrysmod, gmod, gmod-module, rich-presence
- Language: C++
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- 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/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