# GRAPHICS::DRAW_TV_CHANNEL

- **Hash:** `0xC0A145540254A840`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `DrawTvChannel`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/DRAW_TV_CHANNEL

## Signature

```c
void DRAW_TV_CHANNEL(float xPos, float yPos, float xScale, float yScale, float rotation, int red, int green, int blue, int alpha);
```

## Parameters

- `xPos` (`float`)
- `yPos` (`float`)
- `xScale` (`float`)
- `yScale` (`float`)
- `rotation` (`float`)
- `red` (`int`)
- `green` (`int`)
- `blue` (`int`)
- `alpha` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
DrawTvChannel(xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha)

-- always available, by hash
Citizen.InvokeNative(0xC0A145540254A840, xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha)
```

### JavaScript

```js
DrawTvChannel(xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha);

// by hash
Citizen.invokeNative('0xC0A145540254A840', xPos + 0.0000001, yPos + 0.0000001, xScale + 0.0000001, yScale + 0.0000001, rotation + 0.0000001, red, green, blue, alpha);
```

### C#

```csharp
Function.Call((Hash)0xC0A145540254A840, xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

## See also

- [GRAPHICS::SET_TV_CHANNEL](https://natives.borderlinerp.com/natives/GRAPHICS/SET_TV_CHANNEL.md)
- [GRAPHICS::GET_TV_CHANNEL](https://natives.borderlinerp.com/natives/GRAPHICS/GET_TV_CHANNEL.md)

*Sources: alloc8or RDR3 NativeDB.*
