RedM Natives

DRAW_TV_CHANNEL

Hash0xC0A145540254A840
Runtime nameDrawTvChannel
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFDDC2B4ED3C69DF0

Signature

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

Parameters

NameTypeDescription
xPosfloat—
yPosfloat—
xScalefloat—
yScalefloat—
rotationfloat—
redint—
greenint—
blueint—
alphaint—

Returns void

Usage

Lua
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#
JavaScript
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#
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

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.