> For the complete documentation index, see [llms.txt](https://fivecfx.gitbook.io/devcore/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivecfx.gitbook.io/devcore/documentation/blips-builder-v2/configuration.md). Agents can also search and read this documentation through its [MCP server](https://fivecfx.gitbook.io/devcore/~gitbook/mcp).

# Configuration

The config.lua file.

```lua
-- ========================================
-- Blips Builder V2 - Configuration
-- ========================================
-- Créé par Furious, sur FiveCFX
-- Discord: https://discord.gg/fivecfx
-- ========================================

Config = {}

-- ========================================
-- Framework Configuration
-- ========================================
-- Supported: 'esx', 'qbcore', 'auto', 'standalone'
-- 'auto' will automatically detect the framework
Config.Framework = 'auto'

-- ========================================
-- Menu Access Configuration
-- ========================================
-- Restrict menu access to specific groups
Config.RestrictAccess = true

-- ESX Groups (jobs or groups)
Config.ESXAllowedGroups = {
    'admin',
    'superadmin',
    'god',
    'owner',
    'developer',
    'staff',
    'mod',
}

-- QBCore Permissions (groups)
Config.QBCoreAllowedGroups = {
    'admin',
    'god',
    'developer',
    'staff',
    'mod',
}

-- ========================================
-- Keybind Configuration
-- ========================================
-- Key to open the menu (when on the pause menu/map)
-- Set to false to disable keybind (use command only)
Config.OpenOnMap = true                  -- Open NUI when pressing key on the map
Config.OpenKey = 'SPACE'                 -- Key to open on map (SPACE, E, F7, etc.)

-- Command Configuration
Config.EnableCommand = true              -- Enable /blipsbuilder command
Config.CommandName = 'blipsbuilder'      -- Command name

-- ========================================
-- UI Configuration
-- ========================================
Config.UIPosition = 'left'               -- 'left' or 'right'
Config.UIAnimations = true               -- Enable/disable animations
Config.NotificationDuration = 3000       -- Notification duration in ms

-- ========================================
-- Blip Configuration
-- ========================================
Config.MaxSprite = 883                   -- Maximum sprite ID
Config.MaxColor = 85                     -- Maximum color ID
Config.MinScale = 0.01                   -- Minimum scale
Config.MaxScale = 10.0                   -- Maximum scale
Config.MaxNameLength = 64                -- Maximum name length
Config.DefaultScale = 0.7                -- Default scale for new blips

-- ========================================
-- Debug Configuration
-- ========================================
Config.Debug = false                     -- Enable debug messages (set to false in production)

-- ========================================
-- Language / Langue
-- ========================================
-- Supported: 'fr', 'en'
Config.Locale = 'en'

-- ========================================
-- Locales / Traductions
-- ========================================
Config.Locales = {
    ['fr'] = {
        -- Hints
        hint_open = 'Ouvrir le Blips Builder',
        hint_key_open = 'ESPACE',
        hint_place = 'Poser un point sur la carte',
        hint_key_place = 'ENTRÉE',
        hint_cancel = 'Annuler',
        hint_key_cancel = 'ÉCHAP',
        
        -- UI Tabs
        tab_create = 'Créer',
        tab_edit = 'Modifier',
        tab_list = 'Liste',
        
        -- Form
        form_name = 'Nom du blip',
        form_name_placeholder = 'Ex: Commissariat, Hôpital...',
        form_sprite = 'Icône (Sprite)',
        form_sprite_search = 'Rechercher...',
        form_color = 'Couleur',
        form_scale = 'Taille',
        form_flash = 'Faire clignoter',
        
        -- Buttons
        btn_position = 'Position actuelle',
        btn_place_map = 'Placer sur carte',
        btn_cancel = 'Annuler',
        btn_apply_all = 'Appliquer à tous',
        btn_create = 'Créer le blip',
        btn_update = 'Modifier le blip',
        
        -- List
        list_header = 'Blips enregistrés',
        list_empty = 'Aucun blip',
        list_empty_desc = 'Créez votre premier blip',
        list_selected = 'sélectionné(s)',
        
        -- Notifications
        notif_created = 'Blip créé avec succès !',
        notif_updated = 'Blip mis à jour avec succès !',
        notif_deleted = 'Blip supprimé avec succès !',
        notif_duplicated = 'Blip dupliqué à votre position !',
        notif_bulk_updated = '%s blips modifiés !',
        notif_bulk_deleted = '%s blips supprimés !',
        notif_name_required = 'Le nom est requis',
        notif_select_blips = 'Sélectionnez des blips',
        notif_access_denied = 'Accès refusé - permissions insuffisantes.',
        notif_invalid_coords = 'Coordonnées invalides.',
        notif_error = 'Une erreur est survenue.',
        notif_edit_mode = 'Mode modification : utilisez Position actuelle',
        notif_invalid_params = 'Paramètres invalides.',
        notif_blip_missing = 'Blip introuvable.',
        
        -- Misc
        footer_close = 'ESC pour fermer',
        no_name = 'Sans nom',
        edit_multiple_title = 'Modifier %s blips',
        
        -- Tooltps
        tooltip_duplicate = 'Dupliquer',
        tooltip_edit = 'Modifier',
        tooltip_delete = 'Supprimer',
        tooltip_select_mode = 'Mode édition multiple',
    },
    
    ['en'] = {
        -- Hints
        hint_open = 'Open Blips Builder',
        hint_key_open = 'SPACE',
        hint_place = 'Place on map',
        hint_key_place = 'ENTER',
        hint_cancel = 'Cancel',
        hint_key_cancel = 'ESC',
        
        -- UI Tabs
        tab_create = 'Create',
        tab_edit = 'Edit',
        tab_list = 'List',
        
        -- Form
        form_name = 'Blip Name',
        form_name_placeholder = 'Ex: Police Department, Hospital...',
        form_sprite = 'Icon (Sprite)',
        form_sprite_search = 'Search...',
        form_color = 'Color',
        form_scale = 'Scale',
        form_flash = 'Flash',
        
        -- Buttons
        btn_position = 'Current Position',
        btn_place_map = 'Place on Map',
        btn_cancel = 'Cancel',
        btn_apply_all = 'Apply to All',
        btn_create = 'Create Blip',
        btn_update = 'Update Blip',
        
        -- List
        list_header = 'Saved Blips',
        list_empty = 'No Blips',
        list_empty_desc = 'Create your first blip',
        list_selected = 'selected',
        
        -- Notifications
        notif_created = 'Blip created successfully!',
        notif_updated = 'Blip updated successfully!',
        notif_deleted = 'Blip deleted successfully!',
        notif_duplicated = 'Blip duplicated at your position!',
        notif_bulk_updated = '%s blips updated!',
        notif_bulk_deleted = '%s blips deleted!',
        notif_name_required = 'Name is required',
        notif_select_blips = 'Select blips first',
        notif_access_denied = 'Access denied - insufficient permissions.',
        notif_invalid_coords = 'Invalid coordinates.',
        notif_error = 'An error occurred.',
        notif_edit_mode = 'Edit mode: use Current Position',
        notif_invalid_params = 'Invalid parameters.',
        notif_blip_missing = 'Blip not found.',
        
        -- Misc
        footer_close = 'ESC to close',
        no_name = 'No name',
        edit_multiple_title = 'Edit %s blips',
        
        -- Tooltps
        tooltip_duplicate = 'Duplicate',
        tooltip_edit = 'Edit',
        tooltip_delete = 'Delete',
        tooltip_select_mode = 'Bulk Edit Mode',
    }
}

function L(key, ...)
    local locale = Config.Locales[Config.Locale] or Config.Locales['en']
    local str = locale[key] or key
    if ... then
        return string.format(str, ...)
    end
    return str
end

```
