Garry's Mod Wiki

Garry's Mod Wiki

  gui.OpenURL( string url )


Opens specified URL in the steam overlay browser.

When called clientside, user will be asked for confirmation before the website will open.


1 string url
URL to open, it has to start with either http:// or https://.


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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...