setRadioTrack
SET_RADIO_TRACK0xB39786F201FEE30BThe GTA V native SET_RADIO_TRACK of the AUDIO namespace, as LS:MP client scripts call it: the global function setRadioTrack, in JavaScript and in Lua.
setRadioTrack(radioStation: string, radioTrack: string): voidsetRadioTrack(radioStation: string, radioTrack: string)Usage
JavaScript
setRadioTrack(radioStation, radioTrack);Lua
setRadioTrack(radioStation, radioTrack)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStation | string | string | string |
radioTrack | string | string | string |
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.
Only found this one in the decompiled scripts:
setRadioTrack("RADIO_03_HIPHOP_NEW", "ARM1_RADIO_STARTS");Reference
- Namespace
- Audio AUDIO
- In the game
void SET_RADIO_TRACK(const char* radioStation, const char* radioTrack)- Hash
0xB39786F201FEE30B