AudioClient

lockRadioStation

LOCK_RADIO_STATION0x477D9DB48F889591

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

SignatureJavaScript
lockRadioStation(radioStationName: string, toggle: boolean): void
SignatureLua
lockRadioStation(radioStationName: string, toggle: boolean)

Usage

JavaScript
lockRadioStation(radioStationName, toggle);
Lua
lockRadioStation(radioStationName, toggle)

Parameters

ParameterTypeJavaScriptLua
radioStationNamestringstringstring
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.

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

Open in the interactive natives reference