Chat command that will open a website in your Steam browser

I just started my god server and I want to create a chat command that will open up your steam browser with my Workshop collection link.
Could you help me?
Thanks in advance : )



or use


for server sided.

hook.Add( "PlayerSay", "Killurself", function( ply, text, public )
	text = string.lower( text ) -- Make the chat message entirely lowercase
	if ( text == "/facepunch" ) then -- Command
		gui.OpenURL("") -- URL
		return ""
end )

Wrong. PlayerSay is server-side and gui.OpenURL is client-side. Won’t work.

[lua]hook.Add( “OnPlayerChat”, “Dontkillurself”, function( ply, text )
if ( text:lower() == “/facepunch” ) then – Command
gui.OpenURL(“”) – URL
return true
end )[/lua]

Put somewhere in lua/autorun/client/… in the case you don’t know what to do at this point.

Thank you guys very mutch, I tried it and it worked. : )