mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
chat: add suggestions for commands, reduce 'joined' spam, make server prints white
This commit is contained in:
@@ -68,6 +68,9 @@ window.APP = {
|
||||
if (!suggestion.params) {
|
||||
suggestion.params = []; //TODO Move somewhere else
|
||||
}
|
||||
if (this.suggestions.find(a => a.name == suggestion.name)) {
|
||||
return;
|
||||
}
|
||||
this.suggestions.push(suggestion);
|
||||
},
|
||||
ON_SUGGESTION_REMOVE({ name }) {
|
||||
|
||||
@@ -6,6 +6,7 @@ window.CONFIG = {
|
||||
templates: { //You can add static templates here
|
||||
'default': '<b>{0}</b>: {1}',
|
||||
'defaultAlt': '{0}',
|
||||
'print': '<pre>{0}</pre>',
|
||||
'example:important': '<h1>^2{0}</h1>'
|
||||
},
|
||||
fadeTimeout: 7000,
|
||||
|
||||
Reference in New Issue
Block a user