ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getVoicePushToTalkKey

Function

getVoicePushToTalkKey

ClientPlayersTrilogy Hub only

Returns the local player's talk key: their own from the ESC menu or, if they did not pick one, the server's default key. The second value is a name to show on screen.

Syntax

string, string getVoicePushToTalkKey()

Returns

The key name (as in bindKey) and its label, e.g. "z", "Z".

Example

local key, label = getVoicePushToTalkKey()
outputChatBox("Aby mówić, przytrzymaj " .. label)

See also