setRadioStationAsFavourite
SET_RADIO_STATION_AS_FAVOURITE0x4CAFEBFA21EC188DThe 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.
setRadioStationAsFavourite(radioStation: string, toggle: boolean): voidsetRadioStationAsFavourite(radioStation: string, toggle: boolean)Usage
JavaScript
setRadioStationAsFavourite(radioStation, toggle);Lua
setRadioStationAsFavourite(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.
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