
How is it Customize
you can customize the chat according to your own server you can turn off and open some features
Debug
loads the settings without waiting for the character to load, allowing you to try your settings
Config.Debug = true
ShowChatKey
Here you can set which key to open the chat when pressed
Config.ShowChatKey = 'T'
CommandCooldownTime
waiting time setting to avoid span when entering consecutive kumut
Config.CommandCooldownTime = 1000 --default 1000 => 1 sec
EnableEmojiMenu
You can open and close the emoji chat from this section
Config.EnableEmojiMenu = true
RpTextRange
you can determine how far away the thrown kumuts are visible
Config.RpTextRange = 10 -- default 10
Enable Config
You can close and open these commands if you want
Config.EnableAnnouncement = true
Config.EnableOOC = true
Config.EnableEms = true
Config.EnablePolice = true
Config.EnableReport = true
Config.EnableAdminchat = true
Config.EnablePm = true
Log Config
You can set which commands appear in the chat and which do not.
Config.LogMedo = true
Config.LogOcc = true
Config.LogPm = true
Config.LogAdminchat = false
Config.LogReport = true
Config.LogPolice = true
Config.LogEms = true
Config.LogAnnouncement = false
TypeColors
You can specify which color the commands will appear in the chet
Config.TypeColors = {
["me"] = '#4598ff',
["do"] = '#fde25e',
["ooc"] = '#16192e',
["admin"] = '#de4949',
["charinfo"] = '#6d11d6',
["report"] = '#de4949',
["ems"] = '#f2665c',
["police"] = '#0528ed',
["error"] = '#de4949',
["pm"] = '#060807',
["gang"] = '#148f3b',
["announcement"] = '#ba722f'
}
TypeCommands
Write here the message types that are different from the message commands
Config.TypeCommands = {
["ADMIN CHAT"] = "adminchat",
["REPORT"] = "report",
["REPORT REPLY"] = "reportr",
["POLICE"] = "911",
["POLICE REPLY"] = "911r",
["AMBULANCE"] = "311",
["AMBULANCE REPLY"] = "311r",
}
Interact
if you cannot enter any other command here, you can only respond with your own command. For ex this report command can respond as reportr and report.
Config.Interact = {
["me"] = { --command name type lower
edit = true, --editable
reply= true, --replyable
},
["do"] = {
edit = true,
reply= true,
},
["ooc"] = {
edit = true,
reply= true,
},
["adminchat"] = {
edit = true,
reply= true,
},
["announcement"] = {
edit = true,
reply= false,
},
["report"] = {
edit = false,
reply= true,
replycommands ={"reportr"},
["reportr"] = {
edit = true,
reply= true,
replycommands ={"report"},
},
["911"] = {
edit = false,
reply= true,
replycommands ={"911r"},
},
["911r"] = {
edit = true,
reply= true,
replycommands ={"911"},
},
["311"] = {
edit = false,
reply= true,
replycommands ={"311r"},
},
["311r"] = {
edit = true,
reply= true,
replycommands ={"311"},
},
}
Filters
In this area you can edit the categorization section above the chat
Config.Filters = {
[1] = {
label = "ME/DO", -- fitler label
default= true, --Default in fitlers div.if false, the filter will be visible if one of the commands contained in the filter is typed
commands ={"me","do"}, --type the names of the commands you want to be filtered
},
[2] = {
label = "OOC",
default= true,
commands ={"ooc"},
},
[3] = {
label = "ADMIN",
default= true,
admin = true, -- if true only appear on admins
commands ={"adminchat"},
},
[4] = {
label = "REPORTS",
default= false,
admin = true,
commands ={"report","reportr"},
},
[5] = {
label = "JOB",
default= false,
admin = false,
commands ={"911","911r","311","311r"},
},
[6] = {
label = "PM",
commands ={"pm"},
},
}
TriggerEvents
change to your discord log scrpit
function discordlog(commandtype,message,sourcelog)
TriggerEvent("DiscordBot:ToDiscord", commandtype, message, sourcelog) to your discord log scrpit
end
Last updated