ConnorGuy Posted August 17, 2021 Posted August 17, 2021 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?
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