Configuration

config.lua

-- "locales.en" >> English
-- "locales.ar" >> Arabic
-- "locales.fr" >> French
-- "locales.es" >> Spanish
-- "locales.de" >> German
-- "locales.pt" >> Portuguese
-- "locales.zh" >> Chinese
-- "locales.pl" >> Polish
-- "locales.nl" >> Dutch
-- "locales.it" >> Italian
-- "locales.ru" >> Russian
-- "locales.tr" >> Turkish
-- "locales.sv" >> Swedish
lang = lib.loadJson("locales.en")

Config = {}

-- 'ar' >> from right to left (better for users who use lang arabic)
-- 'en' >> from left to right (better for any lang not has special characters)
Config.NUI_Style = 'en' -- 'ar' / 'en'

--[[ 'qb' ]]
--[[ 'esx' ]] 
--[[ 'qbox' ]]
--[[ 'custom' ]] -- required to setup your framework in this path folder: custom/frameworks/custom/*.lua
--[[ 'auto-detect' ]] -- automatically detect your framework 
Config.Framework = 'auto-detect'

-- if your core folder his name changed important to update his name bellow 
Config.CoreFoldersName = {
    qb = 'qb-core',
    esx = 'es_extended',
    qbox = 'qbx_core'
}

-- make sure setup your webhooks links before set true in [server/sv_webhooks.lua]
Config.EnableWeebhook = false 

-- change the prefix if you want reset all NUI local settings for all players was use this script before
Config.Prefix_Save_Storage = "_hub"

-- this if you want enable control in menu without show cursor only with buttons in keyborad
Config.EnableNoCursorControll = true 

-- Key binds control
Config.ControllKeys = {
    KeyBindPrefix = "_hub_controll",  -- change prefix if this keys used before by players
    Open_Close = "K",
    Open_Cursor = "U"
}

-- true to enable sound effects (click/open/close/navebar...)
Config.EnableSound = true

-- if some job coming with force theme automatically this setting turn off 
Config.Theme = {
    -- 'blue' / 'brown' / 'black' / 'white' / 'green'
    -- 'purple' / 'pink' / 'yellow' / 'red' / 'orange'
    defaultTheme = 'blue', -- the default theme coming 

    enableSwitch = true,  -- that mean give player access to choose any theme want use 

    themes = {
        {
            theme = 'blue',
            label = lang["blue"],
        },
        {
            theme = 'brown',
            label = lang["brown"],
        },
        {
            theme = 'black',
            label = lang["black"],
        },
        {
            theme = 'white',
            label = lang["white"],
        },
        {
            theme = 'green',
            label = lang["green"],
        },
        {
            theme = 'purple',
            label = lang["purple"],
        },
        {
            theme = 'pink',
            label = lang["pink"],
        },
        {
            theme = 'yellow',
            label = lang["yellow"],
        },
        {
            theme = 'red',
            label = lang["red"],
        },
        {
            theme = 'orange',
            label = lang["orange"],
        },
    }
}

--[[ 'esx' ]]
--[[ 'qb' ]]
--[[ 'qbox' ]]
--[[ 'ox_lib' ]]
--[[ 'auto-detect' ]] -- auto detect framework notfication
Config.Notification = 'auto-detect'

Config.TimeInterval = 5000  -- timer for update emergency members list

--[[ 'pma-voice' ]]
--[[ 'mumble-voip' ]]
--[[ 'saltychat' ]]
--[[ 'custom' ]] -- go to this path and start setup your custom voice system [custom/utils/server.lua]
--[[ 'auto-detect' ]] -- auto detect your voice script
Config.VoiceSystem = 'auto-detect'

-- used when mark player in map
Config.BlipPlayerMarker = {
    Sprite = 280,
    Color = 0,
    Scale = 1.0,
    Flash = true,
    Timer = 120000  -- 2 min to disappear blip
}

Config.CloseMenuInDeath = true  -- if true the menu will close when player die

-- if true can player make his self invisible and will not shown in list for other members in group
Config.EnableInvisibleOption = true  

-- if true the player has a option make list not show off duty members group
Config.EnableHideOffDutyOption = true

-- if false only on duty members can open emergency hub
Config.AllowOffDutyMembersOpenHub = true  

-- alert member when tracked by another member in same group
Config.AlertMemberInTrack = true

Config.Jobs = {
    ["police"] = {
        -- to add your custom image inside script go to this path and throw them [web/img] (recomended size 200x200 px)
        -- support also external links
        logo = "img/police.webp",  

        -- theme you want use for this job
        forcetheme = { enable = false, theme = 'blue' },

        -- enable or disable chat system
        chat = true,

        -- access to this job chats
        accessJobChat = {'ambulance', 'sheriff'},  

        -- access to view members list to this jobs 
        accessJobView = {'ambulance', 'sheriff'},
    },
    ["sheriff"] = {
        logo = "img/sheriff.webp",
        forcetheme = { enable = false, theme = 'brown' },
        chat = true,
        accessJobChat = {'ambulance', 'police'}, 
        accessJobView = {'ambulance', 'police'},
    },
    ["ambulance"] = {
        logo = "img/ambulance.webp",
        forcetheme = { enable = false, theme = 'red' },
        chat = true,
        accessJobChat = 'police', 
        accessJobView = 'police',
    },
}

-- These colors are used to highlight chat messages from players whose job does not match the job group of the chat they are typing in.
Config.ChatMessageColors = {
    ['police'] = 'linear-gradient(180deg, rgb(40,90,200), rgb(10,40,110));',
    ['sheriff'] = 'linear-gradient(180deg, rgb(190,150,70), rgb(90,60,30));',
    ['ambulance'] = 'linear-gradient(180deg, rgb(220,50,50), rgb(120,10,10))',
}

Config.Commands = {
    -- this command help user to reset menu to default postion if not display in his screen
    ResetUiPosition = 'hub_reset_ui', 
}

-- Do you want to be notified via server console if an update is available?
-- true if yes, false if no
Config.VersionCheck = true 

Last updated