Is it possible to do this?

Is it possible when people press the
GM:ShowSpare2 button to run a console command
that opens the steam overlay web browser and goes to a http website?


function GM:ShowSpare2( ply )
RunConsoleCommand("") – Some command that opens the steam overlay and goes to a http link?


thanks bro

[editline]25th January 2016[/editline]

[ERROR] gamemodes/mazerunner/gamemode/init.lua:20: attempt to index global ‘gui’ (a nil value)

  1. unknown - gamemodes/mazerunner/gamemode/init.lua:20

[editline]25th January 2016[/editline]

Oh i get it
local button = vgui.Create( “DButton” )
button:SetSize( 125, 90 )
button:SetText( “Support Our Servers!” )
button.DoClick = function()
gui.OpenURL( “” )

If you wanna do it serverside, use SendLua.

Or net

Or umsg

Or then again you could find a bucket to throw up into. UMSG is on it’s way out for a while now. although it does still have a few perks.