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

Function

getFunctionsBoundToKey

Returns the functions (and command names) bound to a key.

Syntax

Server

table getFunctionsBoundToKey(player thePlayer, string key)

Client

table getFunctionsBoundToKey(string key)

Arguments

thePlayerplayer
The player (server only).
keystring
The key.

Differences from MTA:SA

  • These MTA:SA arguments are not here: string keyState

In MTA:SA

getFunctionsBoundToKey(player thePlayer, string key, string keyState)

Returns

A table of functions.

Example

outputChatBox("Pod F2: " .. #getFunctionsBoundToKey("F2") .. " funkcji")

See also