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
Will silently fail if the URL is more than 512 characters long.

Issue Tracker: 4663


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: 72ms

DB GetPage 41
Generate Html 2
SaveChanges (1) 13
Render Body 0
Render Sidebar 13