setTvChannelPlaylist
SET_TV_CHANNEL_PLAYLIST0xF7B38B8305F1FE8BThe GTA V native SET_TV_CHANNEL_PLAYLIST of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setTvChannelPlaylist, in JavaScript and in Lua.
setTvChannelPlaylist(
tvChannel: number,
playlistName: string,
restart: boolean
): voidsetTvChannelPlaylist(
tvChannel: integer,
playlistName: string,
restart: boolean
)Usage
setTvChannelPlaylist(tvChannel, playlistName, restart);setTvChannelPlaylist(tvChannel, playlistName, restart)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tvChannel | int | number | integer |
playlistName | string | string | string |
restart | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
tvChannel must be between 0 and 4; playlistName is required. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Loads specified video sequence into the TV Channel
TV_Channel ranges from 0-2
VideoSequence can be any of the following:
"PL_STD_CNT" CNT Standard Channel
"PL_STD_WZL" Weazel Standard Channel
"PL_LO_CNT"
"PL_LO_WZL"
"PL_SP_WORKOUT"
"PL_SP_INV" - Jay Norris Assassination Mission Fail
"PL_SP_INV_EXP" - Jay Norris Assassination Mission Success
"PL_LO_RS" - Righteous Slaughter Ad
"PL_LO_RS_CUTSCENE" - Righteous Slaughter Cut-scene
"PL_SP_PLSH1_INTRO"
"PL_LES1_FAME_OR_SHAME"
"PL_STD_WZL_FOS_EP2"
"PL_MP_WEAZEL" - Weazel Logo on loop
"PL_MP_CCTV" - Generic CCTV loop
Restart:
0=video sequence continues as normal
1=sequence restarts from beginning every time that channel is selected
The above playlists work as intended, and are commonly used, but there are many more playlists, as seen in tvplaylists.xml. A pastebin below outlines all playlists, they will be surronded by the name tag I.E. (<Name>PL_STD_CNT</Name> = PL_STD_CNT).
https://pastebin.com/zUzGB6h7
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void SET_TV_CHANNEL_PLAYLIST(int tvChannel, const char* playlistName, BOOL restart)- Hash
0xF7B38B8305F1FE8B- Formerly
_LOAD_TV_CHANNEL_SEQUENCE