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

Function

getControlNames

Server and clientInput and controlsTrilogy Hub only

Returns the game control names accepted by toggleControl, setControlState and isControlEnabled.

Syntax

table getControlNames([string group])

Arguments

groupstring, optional
"foot" (on foot), "vehicle" (in a vehicle); all without it.

Returns

A table of names, e.g. fire, jump, accelerate.

Example

for _, name in ipairs(getControlNames("vehicle")) do
    outputServerLog(name)
end

See also