OnClientChatMessage: Difference between revisions
Jump to navigation
Jump to search
Chris smith (talk | contribs) No edit summary |
Chris smith (talk | contribs) |
||
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. | ||
==Cancel effect== | ==Cancel effect== | ||
AS OF 1.3.2 | |||
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then. | If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then. | ||
==Example== | ==Example== |
Revision as of 09:00, 8 April 2013
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.
Cancel effect
AS OF 1.3.2 If this event is canceled, the game's chat system won't deliver the posts. You may use outputChatBox to send the messages then.
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