Garry's Mod Wiki


gui.OpenURL( string url )


Opens specified URL in the steam overlay browser. The URL has to start with either http:// or https://

When called clientside, user will be asked for confirmation before the website will open.
You can't click the confirmation if a model panel has focus.

Issue Tracker: 3383


1 string url
URL to open


Opens a page when a button is clicked.

local button = vgui.Create( "DButton" ) button:SetSize( 125, 90 ) button:Center() button:SetText( "Join our Discord!" ) button.DoClick = function() gui.OpenURL( "" ) end

Page Links

Special Pages



Render Time: 40ms

DB GetPage 7
Generate Html 2
SaveChanges (1) 17
Render Body 0
Render Sidebar 12