Tokio Posted December 16, 2017 Share Posted December 16, 2017 I want create a help panel, with html, but i don't know how to make this.. Anyone can help? Link to comment
Moderators IIYAMA Posted December 16, 2017 Moderators Share Posted December 16, 2017 (edited) Add the html file (and other web files) in to your meta.xml Follow the example of this page: https://wiki.multitheftauto.com/wiki/GuiCreateBrowserEnable: isLocal: Sets whether the browser can only show local content or content from the internet (see examples over here for more information) loadBrowserURL(webBrowser, "http://mta/local/index.html") This is your root: http://mta/local/ And you are ready to go! Edited December 16, 2017 by IIYAMA Link to comment
Tokio Posted December 16, 2017 Author Share Posted December 16, 2017 4 minutes ago, IIYAMA said: Add the html file (and other web files) in to your meta.xml Follow the example of this page: https://wiki.multitheftauto.com/wiki/GuiCreateBrowserEnable: isLocal: Sets whether the browser can only show local content or content from the internet (see examples over here for more information) loadBrowserURL(webBrowser, "http://mta/local/index.html") And you are ready to go! Does not working, "404 - Not found" Link to comment
Moderators IIYAMA Posted December 16, 2017 Moderators Share Posted December 16, 2017 I am posting informative content. If you want help, then do the same. Link to comment
Tokio Posted December 16, 2017 Author Share Posted December 16, 2017 7 minutes ago, IIYAMA said: I am posting informative content. If you want help, then do the same. What do you mean? Link to comment
Moderators IIYAMA Posted December 16, 2017 Moderators Share Posted December 16, 2017 (edited) 9 minutes ago, 50cent said: What do you mean? For starters, how about you are going to look at it from `helper` perspective. What does the helper need, to solve the issue? When does the helper actually takes time to help somebody? So: What did you try?(lua) How you organized your meta.xml? How you organized your files? (How does your website looks like in the default browser?) Etc. How am I suppose to figure out what your problem is, if I can't match the problem, with the thing that creates the problem in the first place? I am not going to ask you to do those things mate, you have to do those automatic. Edited December 16, 2017 by IIYAMA 2 Link to comment
Storm-Hanma Posted December 16, 2017 Share Posted December 16, 2017 Why dont u edit the free roam folder ? To check how it work its simple Link to comment
Tokio Posted December 16, 2017 Author Share Posted December 16, 2017 Now working fine, but how to change the url with button click? I tried a lot of opportunity, but they did not work. Sorry for my bad english Link to comment
Moderators IIYAMA Posted December 16, 2017 Moderators Share Posted December 16, 2017 Use the <a href="url"></a>. https://developer.mozilla.org/nl/docs/Web/HTML/Element/a Link to comment
Tokio Posted December 16, 2017 Author Share Posted December 16, 2017 In xml, or in lua? Link to comment
Moderators IIYAMA Posted December 16, 2017 Moderators Share Posted December 16, 2017 html Link to comment
Tokio Posted December 17, 2017 Author Share Posted December 17, 2017 But i want change url with a gui button, it is possible? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now