Jump to content
RAGE Multiplayer Community

browser.execute - How to update when CEF is open?


ConnorGuy
 Share

Recommended Posts

So I want to be able to update what browser.execute displays when a variable changes in side it.

mp.events.add('client:openATM', () => {
    browser = mp.browsers.new("package://gui/cashmachine/index.html");
    browser.execute(`Balance(\`${bank}\`);`);
    mp.players.local.freezePosition(true);
    mp.game.ui.setMinimapVisible(true);
    mp.gui.chat.activate(false);
    setTimeout(() => { mp.gui.cursor.show(true, true); }, 500);
});

So at the moment it will only display the current state of the variable in side it, but when I change the variable value it does not how can this be updated when variable updates?

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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...