# CFX::GET_VEHICLE_CUSTOM_SECONDARY_COLOUR

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

## Signature

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

## Parameters

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

## Returns

`void`

## Usage

### Lua

```lua
local r, g, b = GetVehicleCustomSecondaryColour(vehicle)

-- always available, by hash
local r, g, b = Citizen.InvokeNative(0x3ff247a2, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())
```

### JavaScript

```js
const [r, g, b] = GetVehicleCustomSecondaryColour(vehicle);

// by hash
const [r, g, b] = Citizen.invokeNative('0x3ff247a2', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());
```

### C#

```csharp
var r = new OutputArgument();
var g = new OutputArgument();
var b = new OutputArgument();
Function.Call((Hash)0x3ff247a2, vehicle, r, g, b);
// r.GetResult<int>()
// g.GetResult<int>()
// b.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_CUSTOM_SECONDARY_COLOUR](https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_CUSTOM_SECONDARY_COLOUR.md) — 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.

*Sources: Cfx.re native reference.*
