# CFX::SET_VEHICLE_CUSTOM_PRIMARY_COLOUR

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

## Signature

```c
void SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(Vehicle vehicle, int r, int g, int b);
```

## Parameters

- `vehicle` (`Vehicle`)
- `r` (`int`)
- `g` (`int`)
- `b` (`int`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

```
p1, p2, p3 are RGB values for color (255,0,0 for Red, ect)
```

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

## Usage

### Lua

```lua
SetVehicleCustomPrimaryColour(vehicle, r, g, b)

-- always available, by hash
Citizen.InvokeNative(0x8df9f9bc, vehicle, r, g, b)
```

### JavaScript

```js
SetVehicleCustomPrimaryColour(vehicle, r, g, b);

// by hash
Citizen.invokeNative('0x8df9f9bc', vehicle, r, g, b);
```

### C#

```csharp
Function.Call((Hash)0x8df9f9bc, vehicle, r, g, b);
```

## See also

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

*Sources: Cfx.re native reference.*
