# CFX::SET_VEHICLE_COLOURS

- **Hash:** `0x57F24253`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetVehicleColours`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_COLOURS

## Signature

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

## Parameters

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

## Returns

`void`

## Description

*Source: Cfx.re native reference*

colorPrimary & colorSecondary are the paint indexes for the vehicle.
For a list of valid paint indexes, view: pastebin.com/pwHci0xK

**This is the server-side RPC native equivalent of the client native [SET_VEHICLE_COLOURS](?\_0x4F1D4BE3A7F24601).**

## Usage

### Lua

```lua
SetVehicleColours(vehicle, colorPrimary, colorSecondary)

-- always available, by hash
Citizen.InvokeNative(0x57f24253, vehicle, colorPrimary, colorSecondary)
```

### JavaScript

```js
SetVehicleColours(vehicle, colorPrimary, colorSecondary);

// by hash
Citizen.invokeNative('0x57f24253', vehicle, colorPrimary, colorSecondary);
```

### C#

```csharp
Function.Call((Hash)0x57f24253, vehicle, colorPrimary, colorSecondary);
```

## See also

- [CFX::GET_VEHICLE_COLOURS](https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_COLOURS.md)

*Sources: Cfx.re native reference.*
