DRAW_TV_CHANNEL
Draws the current TV channel on screen with the given position, scale, rotation and color.
Signature
void DRAW_TV_CHANNEL(float xPos, float yPos, float xScale, float yScale, float rotation, int red, int green, int blue, int alpha); // 0xC0A145540254A840 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | xPos | float |
| 2 | yPos | float |
| 3 | xScale | float |
| 4 | yScale | float |
| 5 | rotation | float |
| 6 | red | int |
| 7 | green | int |
| 8 | blue | int |
| 9 | alpha | int |
Facts
| 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.
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
)// 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
);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
);Related GRAPHICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.