forceMusicTrackList
FORCE_MUSIC_TRACK_LIST0x4E0AF9114608257CThe 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.
forceMusicTrackList(
radioStation: string,
trackListName: string,
milliseconds: number
): voidforceMusicTrackList(
radioStation: string,
trackListName: string,
milliseconds: integer
)Usage
JavaScript
forceMusicTrackList(radioStation, trackListName, milliseconds);Lua
forceMusicTrackList(radioStation, trackListName, milliseconds)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStation | string | string | string |
trackListName | string | string | string |
milliseconds | int | number | integer |
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