Configuration

Available configuration for script.

return {
    -- ========================================================================
    -- CORE SETTINGS
    -- ========================================================================
    
    debug = true,

    -- Unique identifier for this community (change to prevent data conflicts)
    community_id = 'sheen',
    
    -- Language file to load from /lang/ directory
    language = 'en', -- Available: 'en', 'cs'
    
    -- Command to open the keybinds menu
    command = 'binds',
    command_notify = 'bindsnotify',
    command_lang = 'bindslang',
    
    -- ========================================================================
    -- DEFAULT KEYBINDS
    -- ========================================================================
    -- These keybinds are loaded when no saved data exists
    
    default_keybinds = {
        {
            key = "0x760A9C6F", -- G
            modifier = nil,
            command = nil,
            event = "keybind:test",
            eventType = "client",
            eventParams = nil,
            description = "Test Event"
        },
        {
            key = "0x9959A6F0", -- C
            condition = 'on_foot',
            modifier = nil,
            command = nil,
            event = "keybind:test2",
            eventType = "client",
            eventParams = "3, 4",
            description = "Test Event 2"
        },
        {
            key = "0xF3830D8E", -- J
            condition = 'on_horse',
            modifier = nil,
            command = nil,
            event = "keybind:test2",
            eventType = "client",
            eventParams = { "5", "6" },
            description = "Test Event 3"
        },

        {
            key = "0x9959A6F0", -- C
            modifier = "0xDB096B85", -- CTRL
            command = "txAdmin:menu:noClipToggle",
            event = nil,
            eventType = nil,
            eventParams = nil,
            description = "Test Command"
        },
    },
    
    -- ========================================================================
    -- PREDEFINED ACTIONS
    -- ========================================================================
    -- Quick-select actions for UI dropdown menu
    
    actions = {
        { label = 'Toggle Noclip', command = 'txAdmin:menu:noClipToggle' },
        { label = 'Test Event', event = 'keybind:test' },
    },
    
    -- ========================================================================
    -- ACTIVATION CONDITIONS
    -- ========================================================================
    -- Conditions that must be met for keybind to trigger
    
    conditions = {
        { label = 'None', value = 'none' },
        { label = 'On Horse', value = 'on_horse' },
        { label = 'On Foot', value = 'on_foot' },
        { label = 'In Wagon', value = 'in_wagon' },
        { label = 'Armed', value = 'armed' },
    },
    
    -- ========================================================================
    -- MODIFIER KEYS
    -- ========================================================================
    -- Keys that can be held for key combinations
    
    modifiers = {
        { label = 'CTRL', hash = "0xDB096B85" },
        { label = 'SHIFT', hash = "0x8FFC75D6" },
        { label = 'ALT', hash = "0x8AAA0AD4" },
        { label = 'TAB', hash = "0xB238FE0B" },
    },
    
    -- ========================================================================
    -- AVAILABLE KEYS
    -- ========================================================================
    -- Keys that can be bound in the UI
    
    keys = {
        -- Letters
        { label = 'C', hash = "0x9959A6F0" },
        { label = 'G', hash = "0x760A9C6F" },
        { label = 'H', hash = "0x24978A28" },
        { label = 'I', hash = "0xC1989F95" },
        { label = 'J', hash = "0xF3830D8E" },
        { label = 'L', hash = "0x80F28E95" },
        { label = 'O', hash = "0xF1301666" },
        { label = 'Q', hash = "0xDE794E3E" },
        { label = 'U', hash = "0xD8F73058" },
        { label = 'X', hash = "0x8CC9CD42" },
        { label = 'Z', hash = "0x26E9DC00" },
        
        -- Numbers
        { label = '1', hash = "0xE6F612E4" },
        { label = '2', hash = "0x1CE6D9EB" },
        { label = '3', hash = "0x4F49CC4C" },
        { label = '4', hash = "0x8F9F9E58" },
        { label = '5', hash = "0xAB62E997" },
        { label = '6', hash = "0xA1FDE2A6" },
        { label = '7', hash = "0xB03A913B" },
        { label = '8', hash = "0x42385422" },
        
        -- Function Keys
        { label = 'F1', hash = "0xA8E3F467" },
        { label = 'F4', hash = "0x1F6D95E5" },
        { label = 'F6', hash = "0x3C0A40F2" },
        
        -- Arrow Keys
        { label = 'UP', hash = "0x6319DB71" },
        { label = 'DOWN', hash = "0x05CA7C52" },
        { label = 'LEFT', hash = "0xA65EBAB4" },
        { label = 'RIGHT', hash = "0xDEB34313" },
        
        -- Special Keys
        { label = 'DELETE', hash = "0x4AF4D473" },
        { label = 'PAGE UP', hash = "0x446258B6" },
        { label = 'PAGE DOWN', hash = "0x3C3DD371" },
    }
}

Last updated