Jump to content
RAGE Multiplayer Community

Browser.destroy(); - problem.


ConnorGuy
 Share

Recommended Posts

So i keep getting this the second time i try to close my browser works the first time.

https://imgur.com/a/sl8WY76

How can i have it run more then once?

Client-side file that opens and closes the CEF.

mp.events.add('client:closeATM', () => {
    browser.destroy();
    mp.players.local.freezePosition(false);
    mp.game.ui.setMinimapVisible(false);
    mp.gui.chat.activate(true);
    mp.gui.cursor.show(false, false);
});

The CEF main.js for the CEF functions.

$('#closeATM').click(() => {
    mp.trigger('client:closeATM');
});

 

 

 

Edited by ConnorGuy
Add more content.
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...