Help with scripting on prop link to a website

hello i have post a request post and a normal post befor about website link to a prop and i don´t know alot about lua scripting and i got alot of replays on my post and alot of them can help but i still don´t know alot of lua scripting and i don´t know how to but this together to me that will be to big help for me and maybe to others so please help me with this.

Links to my old post
http://www.facepunch.com/threads/1137705?highlight=
http://www.facepunch.com/threads/1137711?highlight=

http://chessnut.info/storage/request_entity.zip

Edit the URL in cl_init.lua

Thanks :smiley:

can you fixe a close button the window becouse u can’t close it when its up

Replace cl_init.lua with this:

[lua]include “shared.lua”;

url = “http://google.com/”;

function ENT:Draw()
self:DrawModel();
end

usermessage.Hook(“newspaper.OpenHTML”, function(um)
local panel = vgui.Create(“DFrame”);
panel:SetSize(ScrW() * 0.75, ScrH() * 0.75);
panel:SetTitle(“Newspaper”);
panel:Center();
panel:ShowCloseButton(true)
panel:MakePopup();

local html = vgui.Create("HTML", panel);
html:StretchToParent(5, 5, 5, 5)
html:OpenURL(url);

end);[/lua]