# CFX::GET_VEHICLE_COLOURS

- **Hash:** `0x40D82D88`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleColours`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_COLOURS

## Signature

```c
void GET_VEHICLE_COLOURS(Vehicle vehicle, int* colorPrimary, int* colorSecondary);
```

## Parameters

- `vehicle` (`Vehicle`)
- `colorPrimary` (`int*`)
- `colorSecondary` (`int*`)

## Returns

`void`

## Usage

### Lua

```lua
local colorPrimary, colorSecondary = GetVehicleColours(vehicle)

-- always available, by hash
local colorPrimary, colorSecondary = Citizen.InvokeNative(0x40d82d88, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt())
```

### JavaScript

```js
const [colorPrimary, colorSecondary] = GetVehicleColours(vehicle);

// by hash
const [colorPrimary, colorSecondary] = Citizen.invokeNative('0x40d82d88', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt());
```

### C#

```csharp
var colorPrimary = new OutputArgument();
var colorSecondary = new OutputArgument();
Function.Call((Hash)0x40d82d88, vehicle, colorPrimary, colorSecondary);
// colorPrimary.GetResult<int>()
// colorSecondary.GetResult<int>()
```

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

## See also

- [CFX::SET_VEHICLE_COLOURS](https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_COLOURS.md) — colorPrimary & colorSecondary are the paint indexes for the vehicle.

*Sources: Cfx.re native reference.*
