Garry's Mod Wiki

gui.OpenURL

gui.OpenURL( string url )

Description

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

Arguments

1 string url
URL to open

Example

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( "http://discord.gg/gmod" ) end

Page Links


Special Pages


Wikis

?

Render Time: 40ms

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