Skip to main content

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

NameTypeDescription
enabledbooleanWhether the voicechat should be enabled or not.

Example

engine.voicechat.setEnabled(false);

Available on: Client Server