Sign in to follow this  

CEF Communication

Recommended Posts'authenticate', () => {
  // activeBrowser is a global var (global.activeBrowser)
  activeBrowser ='package://browser/authentication/index.html')'browserDomReady', () => {
    activeBrowser.execute(`setUsername("${}");`);'loginFormSubmit', (username, password) => {'authenticationResponse', (error, jwt, spawn) => {
        if (error !== null) {
          //Handle Error
        } else {
          global.jwt = jwt;

        return true;
      })'authenticationRequest', username, password);
      return true;

    return true;
  });, true);

Hello together,


ive wrote this code. Ive got 2 problems.

The first is the mp.trigger on the browser side is not working well because i cant pass variables through it.

I used it in cef like this => `mp.trigger('EVENT', param1, param2)`

The second problem is that i cant destroy the browser without an error.

Ive got a global var activeBrowser which i use all time in this script. But on activeBrowser.destroy() the error is "expected multiplayer object" 


I hope u can help me.

Thanks and have a nice day

Edited by despacito

Share this post

Link to post
Share on other sites
Posted (edited)

same problem:

user property is my sequalize model class with data binded"user:register", [player, user]);

trying to call this.

if(user.x && user.y && user.z){,user.y,user.z, 0.0, true,true,true);
Edited by Isigar

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.