OnClientChatMessage: Difference between revisions
Jump to navigation
Jump to search
LordAzamath (talk | contribs) m (→Example) |
LordAzamath (talk | contribs) m (→Example: event is not cancelable - example is wrong) |
||
Line 15: | Line 15: | ||
The [[event system#Event source|source]] of this event is the root element. | The [[event system#Event source|source]] of this event is the root element. | ||
==Example== | ==Example== | ||
This event doesn't have an example added yet | |||
<!-- | |||
This example doesn't output anything to chatbox if it consists only of numbers | This example doesn't output anything to chatbox if it consists only of numbers | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 25: | Line 27: | ||
addEventHandler("onClientChatMessage", getRootElement(), onClientChatMessageHandler) | addEventHandler("onClientChatMessage", getRootElement(), onClientChatMessageHandler) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
--> | |||
==See Also== | ==See Also== |
Revision as of 10:38, 16 May 2009
This event is triggered when any text is output to chatbox, including MTA's hardcoded messages.
Parameters
string text, int r, int g, int b
- text: The text that was output to chatbox
- r: The amount of red in the color of the text.
- g: The amount of green in the color of the text.
- b: The amount of blue in the color of the text.
Source
The source of this event is the root element.
Example
This event doesn't have an example added yet
See Also
Client other events
- onClientChatMessage
- onClientConsole
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMinimize
- onClientMTAFocusChange
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled