Skip to main content

enableChannel

Enables a voicechat channel.

Default channel

By default, all players are in the channel 0.

Syntax

player.enableChannel(channel);

Parameters

NameTypeDescription
channelnumberThe channel number. Max channel number is 2_147_483_647, negative channels are allowed

Example

player.enableChannel(1000);

// or exclusive channel based on the player id (negative channel)
player.enableChannel(-player.id);

Available on: Server