# CFX::GET_VEHICLE_NEON_COLOUR

- **Hash:** `0xD9319DCB`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleNeonColour`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described with examples
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_NEON_COLOUR

## Signature

```c
void GET_VEHICLE_NEON_COLOUR(Vehicle vehicle, int* red, int* green, int* blue);
```

## Parameters

- `vehicle` (`Vehicle`) — The vehicle to check.
- `red` (`int*`) — Pointer to an integer where the red component of the neon color will be stored.
- `green` (`int*`) — Pointer to an integer where the green component of the neon color will be stored.
- `blue` (`int*`) — Pointer to an integer where the blue component of the neon color will be stored.

## Returns

`void` — None. The neon color values are retrieved and stored in the `red`, `green`, and `blue` pointers. Make sure to store the returned values in variables for further use.

## Description

*Source: Cfx.re native reference*

Getter to check the neon colour of a vehicle. This native is the server side getter of [GET_VEHICLE_NEON_LIGHTS_COLOUR](#\_0x7619EEE8C886757F).

## Usage

### Lua

```lua
local red, green, blue = GetVehicleNeonColour(vehicle)

-- always available, by hash
local red, green, blue = Citizen.InvokeNative(0xd9319dcb, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())
```

### JavaScript

```js
const [red, green, blue] = GetVehicleNeonColour(vehicle);

// by hash
const [red, green, blue] = Citizen.invokeNative('0xd9319dcb', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());
```

### C#

```csharp
var red = new OutputArgument();
var green = new OutputArgument();
var blue = new OutputArgument();
Function.Call((Hash)0xd9319dcb, vehicle, red, green, blue);
// red.GetResult<int>()
// green.GetResult<int>()
// blue.GetResult<int>()
```

- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

## Examples

*Source: Cfx.re native reference*

```lua
local vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false) -- 1 is the source here
local red, green, blue = GetVehicleNeonColour(vehicle)
print(red, green, blue)
```

*Source: Cfx.re native reference*

```js
const vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
const [red, green, blue] = GetVehicleNeonColour(vehicle);
console.log(red, green, blue);
```

*Source: Cfx.re native reference*

```cs
using static CitizenFX.Core.Native.API;

int vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
int red, green, blue;
GetVehicleNeonColour(vehicle, out red, out green, out blue);
Debug.WriteLine($"{red}, {green}, {blue}");
```

*Sources: Cfx.re native reference.*
