# setVehicleNeonColor (Shared)

> Changes the colour of a vehicle's neon. The colour applies to every strip.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Vehicle looks
- **URL**: https://wiki.mymp.gg/en/setVehicleNeonColor

## Syntax

```lua
bool setVehicleNeonColor(element element, color color)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `element` | A vehicle, or a parent element: every vehicle below it changes too. |
| `color` | `color` | Three numbers `r, g, b` (integers from 0 to 255) or a `tocolor` value. Alpha is ignored. |

## Returns

`true` if it changed, `false` if it is not a vehicle.

On the server, the change is sent to every client. On the client, it applies to this client only.

## Example

```lua
local vehicle = createVehicle("infernus", 2490, -1670, 13.3)
setVehicleNeonColor(vehicle, tocolor(0, 255, 120))
setVehicleNeonEnabled(vehicle, "all", true)
```

### Note

With a parent element (such as `root`), every vehicle below changes, but the return value is the element's own, which is not a vehicle: `false`.

## See also

- [getVehicleNeonColor (Shared)](https://wiki.mymp.gg/en/getVehicleNeonColor.md): Tells the colour of a vehicle's neon.
- [setVehicleNeonEnabled (Shared)](https://wiki.mymp.gg/en/setVehicleNeonEnabled.md): Turns neon strips under a vehicle on or off.
- [setVehicleNeonPower (Shared)](https://wiki.mymp.gg/en/setVehicleNeonPower.md): Changes the brightness of a vehicle's neon.
