Garry's Mod

Garry's Mod

119 个评价
[DEPRECATED] Discord Rich Presence
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
3.924 KB
2018 年 4 月 6 日 上午 6:22
2018 年 4 月 16 日 下午 7:34
9 项改动说明 ( 查看 )

订阅以下载
[DEPRECATED] Discord Rich Presence

描述

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!

Usage
This is a version of the add-on that supports the following gamemodes by default:
- DarkRP
- Sandbox
- Trouble in Terrorist Town
- Prop Hunt
- Murder
- Zombie Survival
- Cinema


The add-on currently shows the name and icon of the gamemode you're playing, as well as the name, IP address, map and player count of the server you're on.
For TTT and Prop Hunt, you can see the round's remaining time instead of the total time you've spent on a server.

If the gamemode you are using is missing or you want a specific part of information you think would be great to add to the display, please tell me.

If you're Lua savvy, you can edit this add-on by grabbing its source code from the GitHub repository, creating a new state and Discord application and make them interact with eachother in the code, in order to create a custom presence for your own server!

Support
This should work flawlessly on any version of Discord and Garry's Mod. If it doesn't, tell me. If the script ends up creating Lua errors, tell me the error and the output from your console around [Discord RPC] stuff. This applies to the default state too, if it breaks, tell me.

I will read this add-on's comments but don't expect too much, you should rather use the GitHub repository's issue tracker for anything you need to tell me.

Known Bugs
None!

GitHub repository (issues and source code): https://github.com/Tenrys/gmod_discordrpc
66 条留言
Snivy 2024 年 11 月 29 日 上午 7:46 
aw man :missing:
Sadie Adler 2024 年 11 月 18 日 上午 12:27 
I guess not:steamsad:
TheArtemMaps 2022 年 10 月 16 日 下午 5:48 
will it work someday ? :steamsad:
skarano 2021 年 1 月 30 日 上午 11:35 
you will never be a real woman
Bell  [作者] 2020 年 10 月 16 日 下午 12:56 
It literally says in the description you dunce.
Temporary Solutions 2020 年 10 月 16 日 上午 11:40 
"Known Bugs: Doesn't Work!"
WaviestBalloon 2019 年 8 月 25 日 下午 3:33 
Looked like a good add-on aswell...
[TFOW] Awestruck 2019 年 4 月 10 日 上午 6:03 
Would be awesome if this worked :(
Foxgirl Paw Job 2019 年 2 月 23 日 下午 1:33 
Sad, most of my programming knowledge is with C# and C++. Wish I knew Lua, but as far as I know it won't work with Lua scripting.
Bell  [作者] 2019 年 1 月 11 日 上午 9:35 
You can't interact with Discord in any way from Lua, HTTP was the only way and they killed it.