ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPlayerVoiceChannel

Function

getPlayerVoiceChannel

ServerPlayersTrilogy Hub only

Returns the player's voice channel set with setPlayerVoiceChannel.

Syntax

string getPlayerVoiceChannel(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

The channel name or false when the player has no channel.

Example

local channel = getPlayerVoiceChannel(player)
if channel then outputChatBox("Twój kanał: " .. channel, player) end

See also