AudioClient

setRadioStationMusicOnly

SET_RADIO_STATION_MUSIC_ONLY0x774BD811F656A122

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

SignatureJavaScript
setRadioStationMusicOnly(radioStation: string, toggle: boolean): void
SignatureLua
setRadioStationMusicOnly(radioStation: string, toggle: boolean)

Usage

JavaScript
setRadioStationMusicOnly(radioStation, toggle);
Lua
setRadioStationMusicOnly(radioStation, toggle)

Parameters

ParameterTypeJavaScriptLua
radioStationstringstringstring
toggleBOOLbooleanboolean

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

Open in the interactive natives reference