# Config Files

{% tabs %}
{% tab title="config.lua" %}

```lua
IzaapConfig = IzaapConfig or {}
----------------------------------------------------------
-- Framework
----------------------------------------------------------
-- Supported: 'qb' (QBCore) | 'esx' (ESX)
IzaapConfig.Framework = 'qb'
IzaapConfig.Debug     = false

----------------------------------------------------------
-- Commands & Keybinds
----------------------------------------------------------
-- Player menu (VIP)
IzaapConfig.VIPWeaponsCommand = "vipweaponsmenu" -- Command to open the VIP weapons menu
IzaapConfig.VIPWeaponsKey     = "F10"            -- Keybind to open the menu

-- Admin panel
IzaapConfig.AdminCommand      = "weaponspanel"   -- Command to open the admin panel

----------------------------------------------------------
-- Language
----------------------------------------------------------
-- Supported: 'en' | 'es'
IzaapConfig.Language = "en"

----------------------------------------------------------
-- Gameplay Settings
----------------------------------------------------------
IzaapConfig.AllowWeaponInCar = true -- Allow equipping weapons while inside a vehicle

----------------------------------------------------------
-- Discord / Webhook Log Templates
-- NOTE: Keep the %s placeholders as-is (string.format).
----------------------------------------------------------
IzaapConfig.LogMessages = {
    AssignWeapon = {
        title   = "VIP Weapon Assigned",
        message = "Staff %s assigned weapon '%s' to player %s (License: %s)."
    },

    AssignWeaponOffline = {
        title   = "VIP Weapon Assigned (Offline)",
        message = "Staff %s assigned weapon '%s' to an offline player (License: %s, Name: %s)."
    },

    WeaponDeleted = {
        title   = "Weapon Template Deleted",
        message = "Staff %s deleted the weapon template (ID: %s)."
    },

    TemplateCreated = {
        title   = "Weapon Template Created",
        message = "Staff %s created template '%s' (Hash: %s)."
    },

    TemplateUpdated = {
        title   = "Template Components Updated",
        message = "Staff %s updated components for weapon template (ID: %s)."
    },

    PlayerWeaponUpdated = {
        title   = "Player Weapon Attachments Updated",
        message = "Staff %s updated attachments for an assigned weapon (ID: %s)."
    }
}

----------------------------------------------------------
-- Notifications
----------------------------------------------------------
IzaapConfig.NotifyMessages = {
    NoPermission = {
        message = "You do not have permission to use this command.",
        type    = "error" -- QBCore notify type (ignored on ESX)
    }
}

```

{% endtab %}

{% tab title="locales/locales.lua" %}

```lua
Locales = {}

Locales['es'] = {
    menu_title = "Armas VIP",
    menu_subtitle = "Selecciona un arma",
    edit_weapon_title = "Editar Armas",
    edit_options_title = "Opciones del arma",
    edit_components_title = "Componentes del arma",
    keymap_label = "Abrir menú de armas VIP",
    no_weapons = "No tienes armas VIP registradas",
    contact_admin = "Contacta con un administrador para recibirlas.",
    disarm_button = "Desarmar",
    edit_button = "Editar Armas",
    rename_weapon = "Cambiar Nombre",
    rename_prompt = "Nuevo nombre del arma",
    rename_success = "Nombre actualizado",
    edit_components = "Editar Componentes",
    toggle_component = "Activa o desactiva este componente",
    enabled = "activado",
    disabled = "desactivado",
    save = "Guardar",
    save_success = "Componentes guardados",
    weapon_default = "Arma",
    active = "ACTIVO",
    inactive = "NO",
}

Locales['en'] = {
    menu_title = "VIP Weapons",
    menu_subtitle = "Choose a weapon",
    edit_weapon_title = "Edit Weapons",
    edit_options_title = "Weapon Options",
    edit_components_title = "Weapon Components",
    keymap_label = "Open VIP weapons menu",
    no_weapons = "You don't have any VIP weapons",
    contact_admin = "Contact an admin to receive one.",
    disarm_button = "Disarm",
    edit_button = "Edit Weapons",
    rename_weapon = "Rename Weapon",
    rename_prompt = "Enter new weapon name",
    rename_success = "Weapon name updated",
    edit_components = "Edit Components",
    toggle_component = "Toggle this component",
    enabled = "enabled",
    disabled = "disabled",
    save = "Save",
    save_success = "Components saved",
    weapon_default = "Weapon",
    active = "ACTIVE",
    inactive = "NO",
}

Lang = Locales[IzaapConfig and IzaapConfig.Language or 'es'] or Locales['es']

```

{% endtab %}
{% endtabs %}
