M MY Multiplayer: Wiki
Side
Kind

getBoundKeys

Client

Lists the keys bound to a command on this client.

table|false getBoundKeys(string command)

Parameters

NameTypeDescription
commandstringThe command's name.

Returns

A table mapping each key name to "down", "up" or "both", or false if no key runs the command.

It counts the command binds of every client resource.

Example

local keys = getBoundKeys("radio")
if keys then
    for key, state in pairs(keys) do
        outputDebugString(key .. " (" .. state .. ")")
    end
end

See also