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

Function

getBoundKeys

Returns the keys a player has bound to commands (bindKey with a command name) as a key -> command table.

Syntax

table getBoundKeys(player thePlayer)

Arguments

thePlayerplayer
The player.Different type in MTA:SA: string command/control

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

getBoundKeys(string command/control)

Returns

A { [key] = command } table or false.

Example

for key, command in pairs(getBoundKeys(player)) do
    outputServerLog(key .. " -> /" .. command)
end

See also