Jump to content

Cleint -> Browser


Recommended Posts

49 минут назад, mDenis16 сказал:

use browser.execute(``);

    'GetVar' : (test_server) => {
        test_client = test_server;
        mp.gui.chat.push('Значение: '+test_server)
        var hud = mp.browsers.new('package://hud/index.html');
        hud.execute(`document.getElementById("level").innerHTML = ${test_client};`);


If you replace $ {test_client} with "any text", then everything works, but does not want a variable

Link to comment
Share on other sites

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...