setCustomRadioTrackList
SET_CUSTOM_RADIO_TRACK_LIST0x4E404A9361F75BB2The GTA V native SET_CUSTOM_RADIO_TRACK_LIST of the AUDIO namespace, as LS:MP client scripts call it: the global function setCustomRadioTrackList, in JavaScript and in Lua.
setCustomRadioTrackList(
radioStation: string,
trackListName: string,
p2: boolean
): voidsetCustomRadioTrackList(
radioStation: string,
trackListName: string,
p2: boolean
)Usage
JavaScript
setCustomRadioTrackList(radioStation, trackListName, p2);Lua
setCustomRadioTrackList(radioStation, trackListName, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStation | string | string | string |
trackListName | string | string | string |
p2 | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Examples:
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "END_CREDITS_KILL_MICHAEL", 1);
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "END_CREDITS_KILL_MICHAEL", 1);
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "END_CREDITS_KILL_TREVOR", 1);
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "END_CREDITS_SAVE_MICHAEL_TREVOR", 1);
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "OFF_ROAD_RADIO_ROCK_LIST", 1);
setCustomRadioTrackList("RADIO_06_COUNTRY", "MAGDEMO2_RADIO_DINGHY", 1);
setCustomRadioTrackList("RADIO_16_SILVERLAKE", "SEA_RACE_RADIO_PLAYLIST", 1);
setCustomRadioTrackList("RADIO_01_CLASS_ROCK", "OFF_ROAD_RADIO_ROCK_LIST", 1);Reference
- Namespace
- Audio AUDIO
- In the game
void SET_CUSTOM_RADIO_TRACK_LIST(const char* radioStation, const char* trackListName, BOOL p2)- Hash
0x4E404A9361F75BB2