OnClientConsole: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
[[Category:Incomplete Event]]
 
{{Client event}}
__NOTOC__  
__NOTOC__  
This event is blahblah and is used for blahblah.
This event is triggered when the local player enters text in the console. Note that, if you want to add custom console commands, it is easier to the [[addCommandHandler]] function.


==Syntax==  
==Parameters==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
void onClientConsole ( text )
string text
</syntaxhighlight>  
</syntaxhighlight>
*'''text:''' the text line that was entered.


==Example==  
==Example==  
This example does...
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
 
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>

Revision as of 16:58, 30 December 2007

This event is triggered when the local player enters text in the console. Note that, if you want to add custom console commands, it is easier to the addCommandHandler function.

Parameters

string text
  • text: the text line that was entered.

Example