SetPlayerVoiceChannel
setPlayerVoiceChannel
Assigns a player to a server-authoritative voice channel.
Syntax
bool setPlayerVoiceChannel(int playerId, int channelId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
channelId |
int |
yes | A channel identifier from 0 through 4294967295. |
Returns
Returns true when the value was accepted; otherwise returns false.
Examples
Put two players on one radio channel:
setPlayerVoiceChannel(firstPlayerId, 7)
setPlayerVoiceChannel(secondPlayerId, 7)
Notes
- Available only in server-side resource scripts.