setEnabled
Sets the global voicechat status.
note
This will disable the voicechat for all players, including admins. If you want to disable the voicechat for a specific player, use the player.voicechat.setMuted
method instead.
PERSISTENT METHOD
This method is persistent. It will not reset when a server restarts.
Syntax
engine.voicechat.setEnabled(enabled);
Parameters
Name | Type | Description |
---|---|---|
enabled | boolean | Whether the voicechat should be enabled or not. |
Example
engine.voicechat.setEnabled(false);
Available on: Client Server