GraphicsClientChecked by LS:MP

setTvChannelPlaylistAtHour

SET_TV_CHANNEL_PLAYLIST_AT_HOUR0x2201C576FACAEBE8

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

SignatureJavaScript
setTvChannelPlaylistAtHour(
  tvChannel: number,
  playlistName: string,
  hour: number
): void
SignatureLua
setTvChannelPlaylistAtHour(
  tvChannel: integer,
  playlistName: string,
  hour: integer
)

Usage

JavaScript
setTvChannelPlaylistAtHour(tvChannel, playlistName, hour);
Lua
setTvChannelPlaylistAtHour(tvChannel, playlistName, hour)

Parameters

ParameterTypeJavaScriptLua
tvChannelintnumberinteger
playlistNamestringstringstring
hourintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

tvChannel must be between 0 and 4, and hour between 0 and 23; playlistName is required. 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_PLAYLIST_AT_HOUR(int tvChannel, const char* playlistName, int hour)
Hash
0x2201C576FACAEBE8

Open in the interactive natives reference