Vehicle::getNeonColor
Внешний вид
This function is used to get the current neon lights of a vehicle.
Syntax
<syntaxhighlight lang="javascript"> vehicle.getNeonColor() </syntaxhighlight>
Return Values
- object
Example
This example gets the neon lights from the vehicle, in which the player sits. <syntaxhighlight lang="javascript"> mp.events.add('playerCommand', (player, cmd) => {
let arr = cmd.split(' ');
if (arr[0] == 'getneon' && player.vehicle) {
player.notify(player.vehicle.getNeonColor().toString());
}
}); </syntaxhighlight>