Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OpenBook(website)
- local w = ScrW() / 2.2
- local h = ScrH() / 1.1
- local frame = vgui.Create( "DFrame" )
- frame:SetSize( w, h )
- frame:SetTitle( " " )
- frame:SetVisible( true )
- frame:SetDraggable( true )
- frame:Center()
- html = vgui.Create( "DHTML", frame )
- html:SetPos( 0, 23 )
- html:SetSize( w, h )
- html:OpenURL(website)
- frame:MakePopup()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement