• How can I browse an HTML file?
    3 replies, posted
I know the title kinda says it all, but I have to write something. I want so I can open an HTML file in a panel or something. I tried to do dhtml:OpenURL( 'web.html' ) not working....
Post code [editline]3rd July 2017[/editline] You can use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/OpenURL]gui.OpenURL[/url] instead of a panel if you want by the way
[QUOTE=MPan1;52427256]Post code [editline]3rd July 2017[/editline] You can use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/OpenURL]gui.OpenURL[/url] instead of a panel if you want by the way[/QUOTE] You can't open a HTML file on the server with gui.OpenURL
Use [url]https://wiki.garrysmod.com/page/Panel/SetHTML[/url] and put the html into a .txt file. You can read the file with [url]https://wiki.garrysmod.com/page/file/Read[/url].
Sorry, you need to Log In to post a reply to this thread.