# getVehicleNeonColor (Shared)

> Tells the colour of a vehicle's neon.

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

## Syntax

```lua
int, int, int|false getVehicleNeonColor(vehicle vehicle)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |

## Returns

Three numbers `r, g, b`, or `false` if it is not a vehicle. A new vehicle has magenta neon (`255, 0, 255`).

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local r, g, b = getVehicleNeonColor(vehicle)
    outputDebugString(("neon %d %d %d"):format(r, g, b))
end
```

## See also

- [setVehicleNeonColor (Shared)](https://wiki.mymp.gg/en/setVehicleNeonColor.md): Changes the colour of a vehicle's neon. The colour applies to every strip.
