multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
153 stars 155 forks source link

Centralized player chat management resource #567

Open jlillis opened 2 days ago

jlillis commented 2 days ago

Is your feature request related to a problem? Please describe. There are multiple onPlayerChat event handlers across multiple resources that implement the same or trivial functionality, such as:

In the case of freeroam and playercolors, these handlers conflict with each other resulting in chat messages appearing twice (see #460).

The other cases are examples of duplicated functionality, which isn't ideal.

Describe the solution you'd like Implement a new chatmanager resource with the following functionality, customizable via resource settings:

Describe alternatives you've considered Changes could be made within mtasa-blue to implement player and team name colors in chat by default.

Additional context Previous pull requests that weren't completed:

461

463

Fernando-A-Rocha commented 2 days ago

I support the solution you describe. Well summarized.