simple dumb question

was wondering if its possible to make a button in a map load a webpage using the steam overlay on button press

example:
func_button>onpressed>lua_run>runlua>(lua code here)

ok i shall try thanks

[editline]7th October 2013[/editline]

i should prolly mention im trying this in ttt



[ERROR] RunString:1: attempt to index global 'gui' (a nil value)
  1. unknown - RunString:1
   2. RunString - [C]:-1
    3. RunCode - gamemodes/base/entities/entities/lua_run.lua:61
     4. unknown - gamemodes/base/entities/entities/lua_run.lua:73
      5. Input - [C]:-1
       6. FireSingleOutput - gamemodes/base/entities/entities/base_entity/outputs.lua:44
        7. TriggerOutput - gamemodes/base/entities/entities/base_entity/outputs.lua:73
         8. TraitorUse - gamemodes/terrortown/entities/entities/ttt_traitor_button/init.lua:80
          9. unknown - gamemodes/terrortown/entities/entities/ttt_traitor_button/init.lua:103
           10. unknown - lua/includes/modules/concommand.lua:69



ihavenoideawhatimdoing.gif

You’re likely running it serverside.

^ so do

[LUA]
if CLIENT then
– gui.yadadad
end
[/LUA]

You obviously can’t do that ( It wont work ) from a lua_run entity. It executes the code on the server only. Also, I don’t think there is any way to get the button presser, so you gotta to make a custom entity for that.