The command I'm trying to make is just a simple command whereby I type !ttt and it connects to my TTT server.
SendLua([[gui.OpenURL( "www.google.co.uk" )]])
^This line above opens the in-game web browser in the gmod overlay on the google homepage.
SendLua([[gui.OpenURL( "steam://connect/185.38.148.8:27125" )]])
^This doesn't open the browser and so doesn't open the link and therefore doesn't connect to my server.
If, however I manually open the overlay and paste 'steam://connect/185.38.148.8:27125' into the address bar and press enter, it connects to my server.
Is there a way I can connect to a specific IP address without using 'steam://connect' in the overlay as this does not appear to work with OpenURL?
Thanks,
Sam.