DRAW_TV_CHANNEL
Hash
0xC0A145540254A840Runtime name
DrawTvChannelNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xFDDC2B4ED3C69DF0Signature
void DRAW_TV_CHANNEL(float xPos, float yPos, float xScale, float yScale, float rotation, int red, int green, int blue, int alpha);Parameters
| Name | Type | Description |
|---|---|---|
xPos | float | — |
yPos | float | — |
xScale | float | — |
yScale | float | — |
rotation | float | — |
red | int | — |
green | int | — |
blue | int | — |
alpha | int | — |
Returns void
Usage
DrawTvChannel(xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha)
-- always works, by hash
Citizen.InvokeNative(0xC0A145540254A840, xPos, yPos, xScale, yScale, rotation, red, green, blue, alpha)JavaScript and C#
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);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.