AudioClient

setCustomRadioTrackList

SET_CUSTOM_RADIO_TRACK_LIST0x4E404A9361F75BB2

The 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.

SignatureJavaScript
setCustomRadioTrackList(
  radioStation: string,
  trackListName: string,
  p2: boolean
): void
SignatureLua
setCustomRadioTrackList(
  radioStation: string,
  trackListName: string,
  p2: boolean
)

Usage

JavaScript
setCustomRadioTrackList(radioStation, trackListName, p2);
Lua
setCustomRadioTrackList(radioStation, trackListName, p2)

Parameters

ParameterTypeJavaScriptLua
radioStationstringstringstring
trackListNamestringstringstring
p2BOOLbooleanboolean

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

Open in the interactive natives reference