Configs
Preview of the configurable file of the package.
shared/configs.lua
Config = {}
Locales = {}
Config.Framework = 'auto' -- auto, ESX or QBCore
Config.Language = 'auto' -- auto, en or es
-- General Settings
Config.GeneralSettings = {
Debug = true,
TransformMessages = true,
DefaultCommand = 'oop',
ErrorOnInvalidCommand = true,
EnableHelpMessages = true
}
Config.Chat = { -- Key Mapping Settings
Command = 'openchat',
Key = 'T'
}
Config.DisableCommands = { -- Disable our chat system commands
-- 'me', 'do' -- Examples
}
Config.Styles = {
Enable = true,
TimeOut = false,
DefaultStyle = '1',
Commands = {
Change = 'style',
Add = 'styleAdd',
Template = 'styleTemplate'
},
Types = {
['1'] = 'css/default.css',
['2'] = 'css/rounded.css'
}
}
Config.RoleplayCommands = { -- Roleplay Commands System
['me'] = { Command = 'me', PrivateCommand = 'pme' },
['do'] = { Command = 'do', PrivateCommand = 'pdo' },
['oop'] = { Command = 'oop' },
['requestid'] = { Command = 'pid' },
['tweet'] = { Command = 'tweet' },
['anontweet'] = { Command = 'anon' },
['msg'] = { Command = 'msg' }
}
Config.NameConfigs = {
Enable = true,
OnlyFirstname = false,
InGameName = true,
}
-- Random Commands System
Config.RandomSystem = {
Commands = {
Dices = 'dices',
Try = 'try'
}
}
-- Admin System
Config.AdminSystem = {
Commands = {
Chat = 'sc',
Service = 'service',
Invisible = 'inv'
},
Ranks = {
'admin',
'support',
'moderator'
}
}
Config.RadioCommands = {
Commands = {
['radio'] = 'r',
['police-sheriff'] = 'rf',
['police-sheriff-ambulance'] = 'rff'
},
Jobs = {
['police'] = 'police',
['sheriff'] = 'sheriff',
['ambulance'] = 'ambulance'
}
}
Config.EmergencyAlert = { -- Visit Docs to see how to configure this system (https://jgs.gitbook.io/jgsdev/docs/chat/installation)
Enable = true,
AlertCommand = 'sendEmergencyAlert-proximity'
}
Config.Compatibilities = {
['lb-phone'] = {
Enable = false
},
['origen_police'] = { -- BETA: This is a beta feature, it may not work as expected
Enable = false,
},
['abp_headFriend'] = {
Enable = false,
ScriptName = 'abp_headFriend'
}
}
-- System Commands
Config.SystemCommands = {
Info = '+info-systemcommand',
Error = '+error-systemcommand',
Jgs = {
['image'] = '../../web/img/jgs.ico',
}
}
Config.Blacklist = { -- Words that will be blocked in the chat
Enable = true,
Words = {
'nigga',
}
}
Config.Cooldown = {
Enable = true,
Time = { -- Seconds
Proximity = 0.5,
Global = 5
}
}
Last updated
Was this helpful?