Skip to content

Streamer Mode

Mute the speaker, boombox, and Carlay audio.

Command#

The default command that comes with the script is /streamermode

Change Command
  • To do this, go to the wais-speaker/config.lua file.
  • Find the Config.StreamerMode table and replace “streamermode” in the [‘command’] = “streamermode” variable with the command of your choice.
lua
Config.StreamerMode = {
    --[[
        📸📸📸
        It was developed for your streamer-gamers who stream on Twitch, Kick, or similar platforms.
        Since the songs are played via YouTube, this is used to prevent copyright issues and takedown notices.
    ]]
    ["use"] = true, -- If you set it to `true`, users will be able to block music played through speakers, boomboxes, and CarPlay using the command below.
    ["command"] = "streamermode", -- Command to toggle streamer mode. You can change it to your desired command.
}
Change Suggestion Message
  • The command suggestion message that appears in Chat is located in the Lua file for the language you selected.
  • For example for en.lua:
text
-- Other stuff
["streamer_mode_suggestion"] = "Mutes the sound of songs played through the Speaker, Boombox and Carplay."

Get State / Exports, Statebags#

You can find out whether the user's Streamer mode is active.

lua
-- The state key is: speaker:streamer
-- Listener
AddStateBagChangeHandler("speaker:streamer", nil, function(bagName, key, value) 
    print('Streamer mode: ', value)
end)

-- Get state directly
print(LocalPlayer.state["speaker:streamer"])

Only valid for the client side.