GraphicsClientChecked by LS:MP

setTvChannel

SET_TV_CHANNEL0xBAABBB23EB6E484E

The GTA V native SET_TV_CHANNEL of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setTvChannel, in JavaScript and in Lua.

SignatureJavaScript
setTvChannel(channel: number): void
SignatureLua
setTvChannel(channel: integer)

Usage

JavaScript
setTvChannel(channel);
Lua
setTvChannel(channel)

Parameters

ParameterTypeJavaScriptLua
channelintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

channel must be -1 (off) or between 0 and 4. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_TV_CHANNEL(int channel)
Hash
0xBAABBB23EB6E484E

Open in the interactive natives reference