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

Function

getControlGroup

Server and clientInput and controlsTrilogy Hub only

Tells whether a control belongs to walking ("foot") or to a vehicle ("vehicle").

Syntax

string getControlGroup(string control)

Arguments

controlstring
The control name.

Returns

"foot", "vehicle" or false for an unknown name.

Example

outputServerLog(getControlGroup("handbrake")) -- vehicle

See also