GetKeyBoundToFunction: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added incomplete syntax)
 
No edit summary
Line 1: Line 1:
__NOTOC__
{{Server function}}
getKeyBoundToFunction allows retrieval of the first key bound to a function.
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string getKeyBoundToFunction( player thePlayer, function theFunction )
string getKeyBoundToFunction( player thePlayer, function theFunction )
</syntaxhighlight>
</syntaxhighlight>
===Required Arguments===
*'''thePlayer:''' The player you are checking the function bound to a key
*'''theFunction:''' The function in which you would like to check the bound key
===Returns===
Returns a string of the first key the function was bound to.
==Example==
This page does not have an example.
<syntaxhighlight lang="lua">
--add an example here
</syntaxhighlight>
==See Also==
{{Input_functions}}

Revision as of 15:12, 26 August 2007

getKeyBoundToFunction allows retrieval of the first key bound to a function.

Syntax

string getKeyBoundToFunction( player thePlayer, function theFunction )

Required Arguments

  • thePlayer: The player you are checking the function bound to a key
  • theFunction: The function in which you would like to check the bound key


Returns

Returns a string of the first key the function was bound to.

Example

This page does not have an example.

--add an example here

See Also