IsControlEnabled: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Black Dragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Checks whether a GTA control is enabled or disabled for a certain player. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool isControlEnabled ( player theplayer, string | bool isControlEnabled ( player theplayer, string control ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePlayer:''' The player you wish the control status of. | |||
*''' | *'''control:''' The control you wish to check. See [[control names]] for a list of possible controls. | ||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' if control is enabled, ''false'' otherwise. | |||
Returns ''true'' if | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
--This line does... | --This line does... |
Revision as of 14:43, 20 June 2007
Checks whether a GTA control is enabled or disabled for a certain player.
Syntax
bool isControlEnabled ( player theplayer, string control )
Required Arguments
- thePlayer: The player you wish the control status of.
- control: The control you wish to check. See control names for a list of possible controls.
Returns
Returns true if control is enabled, false otherwise.
Example
--This line does... blabhalbalhb --abababa --This line does this... mooo
See Also
Template:FunctionArea functions -- leave this unless you complete the function