joew Posted April 20, 2020 Share Posted April 20, 2020 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 comment Share on other sites More sharing options...
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