Garry's Mod Wiki

permissions.EnableVoiceChat

  permissions.EnableVoiceChat( boolean enable )

Description

Activates player's microphone as if they pressed the speak button themself. The player will be prompted with a confirmation window which grants permission temporarily/permanently(depending on checkbox state) for the connected server (revokable). This is used for TTT's traitor voice channel.

Arguments

1 boolean enable
Enable or disable voice activity. true will run +voicerecord command, anything else -voicerecord.