So I’ve being trying for a couple hours now to get some chat commands to work how I want them to work. Basically my server uses Discord for communication, and I want to set up a command when you say !discord it launches discord and makes you join the server. Now luckily discord already half do this, when you send someone an invite code and they click it, it launches their discord. However, it seems when using the link within steam browser it doesn’t launch discord, only takes you to the web version of it.
local function Ranks( ply, text, team ) if string.sub( text, 1, 8) == "!discord" then ply:SendLua( [[gui.OpenURL( "https://discord.gg/QDgjDc2" ) ]] ) end end hook.Add( "PlayerSay","Content", Content)
I need the command to launch someone’s web browser outside of the steam overlay. I’m not sure if this is possible, and I haven’t really found anything on the internet about it.