AudioClient

forceMusicTrackList

FORCE_MUSIC_TRACK_LIST0x4E0AF9114608257C

The GTA V native FORCE_MUSIC_TRACK_LIST of the AUDIO namespace, as LS:MP client scripts call it: the global function forceMusicTrackList, in JavaScript and in Lua.

SignatureJavaScript
forceMusicTrackList(
  radioStation: string,
  trackListName: string,
  milliseconds: number
): void
SignatureLua
forceMusicTrackList(
  radioStation: string,
  trackListName: string,
  milliseconds: integer
)

Usage

JavaScript
forceMusicTrackList(radioStation, trackListName, milliseconds);
Lua
forceMusicTrackList(radioStation, trackListName, milliseconds)

Parameters

ParameterTypeJavaScriptLua
radioStationstringstringstring
trackListNamestringstringstring
millisecondsintnumberinteger

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.

Changes start time of a tracklist (milliseconds)
R* uses a random int: getRandomIntInRange(0, 13) * 60000)

Reference

Namespace
Audio AUDIO
In the game
void FORCE_MUSIC_TRACK_LIST(const char* radioStation, const char* trackListName, int milliseconds)
Hash
0x4E0AF9114608257C
Introduced
Game build 2372 legacy numbering
Formerly
_FORCE_RADIO_TRACK_LIST_POSITION

Open in the interactive natives reference