The Lab
GRAPHICS native

DRAW_TV_CHANNEL

returns void9 paramsbuild 1207

Draws the current TV channel on screen with the given position, scale, rotation and color.

Signature

C
void DRAW_TV_CHANNEL(float xPos, float yPos, float xScale, float yScale, float rotation, int red, int green, int blue, int alpha); // 0xC0A145540254A840 b1207

Parameters

#NameType
1xPosfloat
2yPosfloat
3xScalefloat
4yScalefloat
5rotationfloat
6redint
7greenint
8blueint
9alphaint

Facts

Facts about DRAW_TV_CHANNEL
Name
DRAW_TV_CHANNEL
Hash
0xC0A145540254A840
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xC0A145540254A840, -- DRAW_TV_CHANNEL
  0.0, -- float xPos
  0.0, -- float yPos
  0.0, -- float xScale
  0.0, -- float yScale
  0.0, -- float rotation
  0, -- int red
  0, -- int green
  0, -- int blue
  0 -- int alpha
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC0A145540254A840", // DRAW_TV_CHANNEL
  0.0, // float xPos
  0.0, // float yPos
  0.0, // float xScale
  0.0, // float yScale
  0.0, // float rotation
  0, // int red
  0, // int green
  0, // int blue
  0 // int alpha
);
C#
Function.Call((Hash)0xC0A145540254A840, // DRAW_TV_CHANNEL
  0.0f, // float xPos
  0.0f, // float yPos
  0.0f, // float xScale
  0.0f, // float yScale
  0.0f, // float rotation
  0, // int red
  0, // int green
  0, // int blue
  0 // int alpha
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.