ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getVoiceSettings

Function

getVoiceSettings

Server and clientPlayersTrilogy Hub only

Returns all of the server's voice chat settings as a table. Keys: enabled, mode ("proximity" – heard nearby, "global" – everyone hears everyone, "channels" – nearby plus channels), range (range in metres, 3–250, default 40), minDistance (up to this distance the voice has full volume, default 2), falloff (volume drop with distance: "linear", "inverse", "exponential"), wallDamping (damping through walls 0–1, default 0.75), pushToTalk, pushToTalkKey (default talk key, "z"), bitrate (quality in kb/s, 8–64, default 32), occlusion, reverb, vehicleMuffle (muffled inside a closed car), indicator (icon above the speaker) and mutedByDefault (new players are muted). The client gets the same table as the server.

Syntax

table getVoiceSettings()

Returns

The settings table (a copy – changing it does nothing).

Example

local v = getVoiceSettings()
outputServerLog("Głos: " .. v.mode .. ", zasięg " .. v.range .. " m")

See also