ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPlayerRadioEnabled

Function

setPlayerRadioEnabled

ServerPlayersTrilogy Hub only

Turns the game's in-vehicle radio on or off for a player (or everyone: root). Off gives silence instead of GTA stations, for your own script radio.

Syntax

bool setPlayerRadioEnabled(player thePlayer, bool enabled)

Arguments

thePlayerplayer
A player or root.
enabledbool
false mutes it.

Returns

true on success.

Example

setPlayerRadioEnabled(root, false)

See also