AudioClient

setRadioStationAsFavourite

SET_RADIO_STATION_AS_FAVOURITE0x4CAFEBFA21EC188D

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

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

Usage

JavaScript
setRadioStationAsFavourite(radioStation, toggle);
Lua
setRadioStationAsFavourite(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.

Doesn't have an effect in Story Mode.

Reference

Namespace
Audio AUDIO
In the game
void SET_RADIO_STATION_AS_FAVOURITE(const char* radioStation, BOOL toggle)
Hash
0x4CAFEBFA21EC188D
Introduced
Game build 2372 legacy numbering
Formerly
_SET_RADIO_STATION_IS_VISIBLE

Open in the interactive natives reference