• Opening In game steam browser by command help
    4 replies, posted
I saw a post, where this script successfully worked for this guy, but its not working for me... [CODE]if SERVER then AddCSLuaFile() return end local function ChatToWebsite(ply, txt) if (ply == LocalPlayer() and string.sub(txt, 1, 6) == "!rules") then MsgN("Hook worked.") gui.OpenURL("http://google.com") return true end end hook.Add("OnPlayerChat", "ChatToWebsite", ChatToWebsite)[/CODE] I'm new to lua scripts with gmod, and the way i added it to my server was making a folder in the "Addons" folder. In that folder, i made another one called "lua" and a addon.txt file with the necessary information. In the lua folder, i made another folder called autorun, and finally in that folder a lua file called "shared.lua". In the shared.lua file i pasted the code i previously stated before. I think i did the process correct, is it the script that dosen't work? Or is it the way i setup the Addon? Please help! If so correct the code! Thanks for reading! -Blu
gui.OpenURL no longer exists. Use HTML vgui element.
[QUOTE=Robotboy655;40116131]gui.OpenURL no longer exists. Use HTML vgui element.[/QUOTE] Since when? I thought garry fixed the problems it was having and readded it.
[QUOTE=Robotboy655;40116131]gui.OpenURL no longer exists. Use HTML vgui element.[/QUOTE] It does exist.. I just found another post that has a corrected code using gui.OpenURL ... Garrys added it back... [url]http://garrysmod.com/post/35851602584/garrys-mod-update-152[/url]
Oh, I guess the wiki is misinformating again...
Sorry, you need to Log In to post a reply to this thread.