Jump to content

CEF error


Recommended Posts


I write a dashboard. I enabled the CEF-Debugging, and I always get this:

events.js:2 Uncaught TypeError: Cannot read property 'new' of undefined
    at events.js:2

Here's the events.js:

let devWindow = {
	browser: mp.browsers.new("package://dashboard/index.html"),
	keyCode: 0x7B,
	windowOpen: false
devWindow.browser.active = devWindow.windowOpen;

// keyDown
mp.keys.bind(devWindow.keyCode, true, function(){
		devWindow.browser.active = !devWindow.windowOpen;
		devWindow.windowOpen = !devWindow.windowOpen;
		let name = player.name;
		let money = player.money;
		devWindow.execute(`dash_update('dashboard_update(${name}, ${money});`);

mp.events.add('clientLog', (logObj) => {
	if (devWindow.browser)


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