Jump to content

[HELP] How to make a html help panel?


Tokio

Recommended Posts

  • Moderators
Posted (edited)
  1. Add the html file (and other web files) in to your meta.xml
  2. Follow the example of this page: https://wiki.multitheftauto.com/wiki/GuiCreateBrowser
    Enable: isLocal: Sets whether the browser can only show local content or content from the internet (see examples over here for more information)
  3. loadBrowserURL(webBrowser, "http://mta/local/index.html")

    This is your root: http://mta/local/

  4. And you are ready to go!

Edited by IIYAMA

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
4 minutes ago, IIYAMA said:
  1. Add the html file (and other web files) in to your meta.xml
  2. Follow the example of this page: https://wiki.multitheftauto.com/wiki/GuiCreateBrowser
    Enable: isLocal: Sets whether the browser can only show local content or content from the internet (see examples over here for more information)
  3. 
    loadBrowserURL(webBrowser, "http://mta/local/index.html")
    


    And you are ready to go!

Does not working, "404 - Not found" :S 

My servers:

Fun:

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Derby(DD):

n-560x95_FFFFFF_FFFFFF_000000_000000.png

  • Moderators
Posted

I am posting informative content.

If you want help, then do the same.

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
7 minutes ago, IIYAMA said:

I am posting informative content.

If you want help, then do the same.

 

What do you mean?

My servers:

Fun:

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Derby(DD):

n-560x95_FFFFFF_FFFFFF_000000_000000.png

  • Moderators
Posted (edited)
9 minutes ago, 50cent said:

What do you mean?

For starters, how about you are going to look at it from `helper` perspective.

  1. What does the helper need, to solve the issue?
  2. When does the helper actually takes time to help somebody?

 


So:

  1. What did you try?(lua)
  2. How you organized your meta.xml?
  3. How you organized your files?
  4. (How does your website looks like in the default browser?)
  5. 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 by IIYAMA
  • Like 2

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

Now working fine, but how to change the url with button click? I tried a lot of opportunity, but they did not work. :S

Sorry for my bad english :S 

My servers:

Fun:

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Derby(DD):

n-560x95_FFFFFF_FFFFFF_000000_000000.png

  • Moderators
Posted

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...