# CFX::SET_VEHICLE_CUSTOM_SECONDARY_COLOUR

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

## Signature

```c
void SET_VEHICLE_CUSTOM_SECONDARY_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_SECONDARY_COLOUR](?\_0x36CED73BFED89754).**

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

## See also

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

*Sources: Cfx.re native reference.*
