setTvChannel
SET_TV_CHANNEL0xBAABBB23EB6E484EThe 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.
setTvChannel(channel: number): voidsetTvChannel(channel: integer)Usage
JavaScript
setTvChannel(channel);Lua
setTvChannel(channel)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
channel | int | number | integer |
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