setTvChannelPlaylistAtHour
SET_TV_CHANNEL_PLAYLIST_AT_HOUR0x2201C576FACAEBE8The 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.
setTvChannelPlaylistAtHour(
tvChannel: number,
playlistName: string,
hour: number
): voidsetTvChannelPlaylistAtHour(
tvChannel: integer,
playlistName: string,
hour: integer
)Usage
JavaScript
setTvChannelPlaylistAtHour(tvChannel, playlistName, hour);Lua
setTvChannelPlaylistAtHour(tvChannel, playlistName, hour)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tvChannel | int | number | integer |
playlistName | string | string | string |
hour | int | number | integer |
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