Skip to main content

Vehicle::getNeonColor

This function is used to get the current neon lights of a vehicle.

Syntax​

vehicle.getNeonColor()

Return Values​

  • object

Example​

This example gets the neon lights from the vehicle, in which the player sits.

mp.events.add('playerCommand', (player, cmd) => {
let arr = cmd.split(' ');
if (arr[0] == 'getneon' && player.vehicle) {
player.notify(player.vehicle.getNeonColor().toString());
}
});