- Documentation
- Server functions
- setPlayerRadioEnabled
Function
setPlayerRadioEnabled
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. enabledboolfalsemutes it.
Returns
true on success.
Example
setPlayerRadioEnabled(root, false)