Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nrzull committed Jun 19, 2019
1 parent b8c4f8d commit 6720cff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,20 @@ After reviewing of all default mta resources code for just to be sure that there

#### Functions

- `outputChatBox(string message, int red?, int green?, int blue?) -> void`
Note that there is no last parameter `colorcoded`. Hex processing is enabled by default
- `showChat(bool show) -> void`
- `clearChatBox() -> void`
- `exports.chat2:isChatVisible() -> bool`
Returns true/false if chat is visible.

### Serverside

#### Functions

- `outputChatBox(string message, element elem?, int red?, int green?, int blue?) -> void`
Note that there is no last parameter `colorcoded`. Hex processing is enabled by default
- `showChat(element elem, bool show) -> void`
- `clearChatBox(element elem) -> void`
- `exports.chat2:useCustomEventHandlers(bool) -> void`
Enable/disable default output. If you disable it, then you need to write your own custom handlers for `onPlayerChat2` event

Expand Down

0 comments on commit 6720cff

Please sign in to comment.