Difference between revisions of "GetFunctionsBoundToKey"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 3: Line 3:
Gets the functions bound to a key. To bind a function to a key use the [[bindKey]] function
Gets the functions bound to a key. To bind a function to a key use the [[bindKey]] function


==Syntax==  
==Syntax==
<section name="Server" class="server" show="true" >
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
table getFunctionsBoundToKey ( player thePlayer, string theKey )
table getFunctionsBoundToKey ( player thePlayer , string theKey )
</syntaxhighlight>
</syntaxhighlight>


Line 11: Line 12:
*'''thePlayer:''' The player to get the functions from a key.
*'''thePlayer:''' The player to get the functions from a key.
*'''theKey:''' The key you wish to check the functions from.
*'''theKey:''' The key you wish to check the functions from.
</section>
<section name="Client" class="client" show="true" >
<syntaxhighlight lang="lua">
table getFunctionsBoundToKey ( string theKey )
</syntaxhighlight>
===Required Arguments===
*'''theKey:''' The key you wish to check the functions from.
</section>


===Returns===
===Returns===

Revision as of 23:11, 9 September 2012

Gets the functions bound to a key. To bind a function to a key use the bindKey function

Syntax

Click to collapse [-]
Server
table getFunctionsBoundToKey ( player thePlayer , string theKey )

Required Arguments

  • thePlayer: The player to get the functions from a key.
  • theKey: The key you wish to check the functions from.
Click to collapse [-]
Client
table getFunctionsBoundToKey ( string theKey )

Required Arguments

  • theKey: The key you wish to check the functions from.

Returns

Returns a table of the key function(s).

Example

Accessories-text-editor.png Script Example Missing Function GetFunctionsBoundToKey needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also