lockRadioStation
LOCK_RADIO_STATION0x477D9DB48F889591The GTA V native LOCK_RADIO_STATION of the AUDIO namespace, as LS:MP client scripts call it: the global function lockRadioStation, in JavaScript and in Lua.
lockRadioStation(radioStationName: string, toggle: boolean): voidlockRadioStation(radioStationName: string, toggle: boolean)Usage
JavaScript
lockRadioStation(radioStationName, toggle);Lua
lockRadioStation(radioStationName, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStationName | 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.
Disables the radio station (hides it from the radio wheel).
Reference
- Namespace
- Audio AUDIO
- In the game
void LOCK_RADIO_STATION(const char* radioStationName, BOOL toggle)- Hash
0x477D9DB48F889591- Introduced
- Game build 1493 legacy numbering
- Formerly
_SET_RADIO_STATION_DISABLED_LOCK_RADIO_STATION