JGS Docs
  • 👋Welcome!
  • 📚Resources Docs
    • 💭JGS Dynamic Chat
      • ⚠️Dependencies
      • 🔧Installation
      • 🗃️Exports
      • ⚙️Configuration
        • Configs
        • Discord Logs
        • Templates
        • Suggestions
        • Clipboard
        • Config JS
    • 💬JGS Samp Chat
      • ⚠️Dependencies
      • 🔧Installation
      • ⚙️Configuration
    • 🍔JGS Modern HUD
      • ⚠️Dependencies
      • 🔧Installation
      • 🗃️Exports & Commands
      • ⚙️Configuration
Powered by GitBook
On this page

Was this helpful?

  1. Resources Docs
  2. JGS Samp Chat

Configuration

Configure it the way you like it!

shared/configs.lua
Config = {}
Locales = {}
JGSModuler = exports[GetCurrentResourceName()]

Config.Framework = 'auto' -- auto, ESX or QBCore
Config.Locale = 'auto' -- auto, en or es

Config.Settings = {
    Debug = false,
}

Config.Notifications = {
    Strings = {
        ['error'] = '[ERROR]',
        ['info'] = '[INFO]',
        ['success'] = '[SUCCESS]',
        ['warn'] = '[WARN]'
    },
    Colors = {
        ['error'] = { 255, 0, 0 },
        ['info'] = { 28, 135, 241 },
        ['success'] = { 48, 196, 48 },
        ['warn'] = { 246, 234, 0 }
    }
}

Config.CommandNames = {
    Config = 'chatconfig',
    Me = 'me',
    Do = 'do',
    Ame = 'ame',
    Say = 'say',
    LocalOOC = 'b',
    Car = 'cw',
    Low = 'l',
    Whisper = 'w',
    Shout = 's',
    SearchCMD = 'searchcmd',
    Bf = 'black',
    Msg = 'pm',
    Info = 'info',
    Cash = 'cash',
    Bank = 'bank',
    Job = 'job',
    Time = 'time',
    Dices = 'dices',
    Try = 'try',
    AdminAD = 'ad',
    AdminDuty = 'adminduty',
    StaffChat = 'sc',
    AdminsInService = 'admins',
    JobAnnounce = 'jobad',
    Megaphone = 'megaphone',
}

Config.Proximities = {
    ['SHORT'] = 07.00,
    ['NORMAL'] = 15.00,
    ['LONG'] = 25.00
}

Config.RadioCommands = {
    Enable = true,
    UseChannelSystem = true,
    UseSounds = true,
    Settings = {
        ['igRadio'] = {
            Command = 'r',
            Color = '#FFFF00',
        },
        ['Channel'] = {
            Command = 'c',
            MinChannel = 0,
            MaxChannel = 6,
        },
        ['oocRadio'] = {
            Command = 'f',
            Color = '#14c72f',
        },
        ['department'] = {
            Command = 'dep',
            Color = '#FFC400',
            Prefix = 'DEPARTMENT'
        }
    },
    AllowedJobs = {
        Police = {
            job = 'police',
            prefix = 'LSPD'
        },
        Sheriff = {
            job = 'sheriff',
            prefix = 'LSSD'
        },
        Ambulance = {
            job = 'ambulance',
            prefix = 'LSFD'
        }
    },
    Megaphone = {
        Proximity = 40.0,
        AllowedVehicles = { 'police', 'police2' },
        Color = '#FFFF00'
    }
}

Config.JobAnnounces = {
    Enable = true,
    ShowName = false,
    Jobs = {
        police = {
            job = 'police',
            label = 'Los Santos Police Department',
            color = '#7DAAFF'
        },
        ambulance = {
            job = 'ambulance',
            label = 'Fire Department',
            color = '#FFBE7D'
        },
        bastardart = {
            job = 'bastardart',
            label = 'Bastard Art',
            color = '#F480FF'
        },
    }
}

Config.DiscordLogs = {
    Enable = true,
    Settings = {
        avatar_url = 'https://i.imgur.com/BaNPU8o.png',
    },
    WebHooks = {
        ['PROXIMITY'] = 'YOUR_WEBHOOK_HERE',
        ['PRIVATE_MESSAGE'] = 'YOUR_WEBHOOK_HERE',
        ['INGAME_ANNOUNCES'] = 'YOUR_WEBHOOK_HERE',
        ['ADMINISTRATION'] = 'YOUR_WEBHOOK_HERE',
        ['RADIO_COMMANDS'] = 'YOUR_WEBHOOK_HERE'
    },
    BlacklistedIPs = {
        'XX.XX.XX.XXX',
    }
}

Config.Random = {
    ['dices'] = {
        ['MIN'] = 1,
        ['MAX'] = 6
    }
}
PreviousInstallationNextJGS Modern HUD

Last updated 4 months ago

Was this helpful?

📚
💬
⚙️