General > Developers Corner

how can i open and url in Steamoverlay Browser with specific link

(1/2) > >>

simpleee:
Hello,
I want, that useres can use the command !sg (sg = SteamGroup) to open the SteamGroup Page in their SteamBrowser.

I tried this:

--- Code: ---function ulx.SteamGruppe( calling_ply )
calling_ply:SendLua("gui.OpenURL('http://www.ibot3.de/sg')")
end
local SteamGruppe = ulx.command( "Social", "ulx SteamGruppe", ulx.SteamGruppe, "!sg" )
SteamGruppe:defaultAccess( ULib.ACCESS_SUPERADMIN )
SteamGruppe:help( "SteamGruppe" )
--- End code ---

I got these errors:

--- Code: ---[ERROR] addons/ulx/lua/ulx/xgui/commands.lua:80: attempt to index local 'cmd' (a nil value)
  1. setselected - addons/ulx/lua/ulx/xgui/commands.lua:80
   2. OnRowSelected - addons/ulx/lua/ulx/xgui/commands.lua:305
    3. OnClickLine - lua/vgui/dlistview.lua:506
     4. unknown - lua/vgui/dlistview_line.lua:93


--- End code ---
But it wont work. Can you tell me why, and how i can fix it?

Neku:
It appears that you are trying to open the link in ULX's xgui.

simpleee:
@Neku and how can i make, that it opens the link in steam gui?

Neku:
I'm pretty sure it's just OpenURL.

lynx:
What file did you put this in? What is line 10?

And no Neku, to open something in Steam overlay it is gui.OperURL

Navigation

[0] Message Index

[#] Next page

Go to full version