setRadioStationMusicOnly
SET_RADIO_STATION_MUSIC_ONLY0x774BD811F656A122The GTA V native SET_RADIO_STATION_MUSIC_ONLY of the AUDIO namespace, as LS:MP client scripts call it: the global function setRadioStationMusicOnly, in JavaScript and in Lua.
setRadioStationMusicOnly(radioStation: string, toggle: boolean): voidsetRadioStationMusicOnly(radioStation: string, toggle: boolean)Usage
JavaScript
setRadioStationMusicOnly(radioStation, toggle);Lua
setRadioStationMusicOnly(radioStation, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStation | string | string | string |
toggle | 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.
6 calls in the b617d scripts, removed identical lines:
setRadioStationMusicOnly("RADIO_01_CLASS_ROCK", 1);
setRadioStationMusicOnly(getRadioStationName(10), 0);
setRadioStationMusicOnly(getRadioStationName(10), 1);Reference
- Namespace
- Audio AUDIO
- In the game
void SET_RADIO_STATION_MUSIC_ONLY(const char* radioStation, BOOL toggle)- Hash
0x774BD811F656A122