Jump to content
RAGE Multiplayer Community

[HELP] TypeError: n.setNeonColour is not a function


Recommended Posts

The function: vehicle.setNeonColour  just stop working. Yeterday was all right, now got error. 

mp.events.add("modNeonColor", (player, modvalue) => {
    let vehicle = player.vehicle;
    misc.log.debug(`${player.name} Tuning - Neon Color: ${modvalue}`);
	if (modvalue == "Remove") { vehicle.neonEnabled = false; }
	else { 
		vehicle.setNeonColour(parseInt(modvalue.split(",")[0]), parseInt(modvalue.split(",")[1]), parseInt(modvalue.split(",")[2]));
		vehicle.neonEnabled = true;
	}
});

The console shows up:
Tuning - Neon Color: 0, 255, 255

And i got the error on console:

Quote

TypeError: n.setNeonColour is not a function

How fix it, please?

thank you!

Link to post
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...