ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setRadioEnabled

Function

setRadioEnabled

ClientAudioTrilogy Hub only

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

enabledbool
false mutes the game radio.

Returns

true on success.

Example

setRadioEnabled(false)
local station = playSound("audio/stacja.mp3", true)

See also