- Documentation
- Client functions
- setRadioEnabled
Function
setRadioEnabled
Turns the game's in-vehicle radio on or off. Off gives silence instead of GTA stations, for example for your own radio via playSound. From the server: setPlayerRadioEnabled.
Syntax
bool setRadioEnabled(bool enabled)Arguments
enabledboolfalsemutes the game radio.
Returns
true on success.
Example
setRadioEnabled(false)
local station = playSound("audio/stacja.mp3", true)