---
description: Full View
---

# config.lua

```
Config = {}

Config.Framework = 'esx'  -- Framework type: 'esx' or 'qbcore'. Select the framework used by your server.
Config.NotificationSystem = 'ox_lib'  -- Options: 'ox_lib', 'tnotify', 'okoknotify', 'print', 'framework'. Determines the notification system to use.
Config.Locale = "en" -- Localization option: choose between 'hu', 'en', 'de', 'fr'.
Config.InteractionType = "3dtext" -- Options: "ox_target" or "qb-target" or "3dtext"

Config.NPC = {
    position = vector4(3.5040, -201.8047, 51.7419, 153.9981), -- NPC coordinates (x, y, z, heading)
    model = "csb_chin_goon", -- NPC model
    showBlip = true, -- Show blip true/false
    blipSprite = 488, -- Blip sprite ID (you can change it if needed)
    blipColor = 2 -- Blip color ID (you can change it if needed)
}

Config.EMPItems = {
    ["small_emp_device"] = { 
        item = "small_emp_device", 
        label = "Small EMP Device", -- Display name in the shop menu
        range = 50, -- Range in meters
        cooldown = 60, -- Cooldown in seconds
        duration = 5, -- Duration of the EMP effect in seconds
        price = 150 -- Price in currency
    },
    ["advanced_emp_device"] = { 
        item = "advanced_emp_device", 
        label = "Advanced EMP Device",
        range = 150,
        cooldown = 120,
        duration = 15,
        price = 500
    }
}

Config.EMPDefenseItems = {
    ["basic_emp_shield"] = { 
        item = "basic_emp_shield",
        label = "Basic EMP Shield", -- Display name in the shop menu
        duration = 60.0, -- Duration of protection in seconds
        cooldown = 30.0, -- Cooldown in seconds
        price = 100 -- Price in currency
    },
    ["kevlar_emp_shield"] = { 
        item = "kevlar_emp_shield",
        label = "Kevlar EMP Shield",
        duration = 120.0,
        cooldown = 60.0,
        price = 250
    },
    ["tactical_emp_shield"] = { 
        item = "tactical_emp_shield",
        label = "Tactical EMP Shield",
        duration = 30.0,
        cooldown = 15.0,
        price = 400
    }
}

Config.EMPImmuneVehicles = {
    "riot", -- Armored vehicles that are immune to EMP effects
    "insurgent"
}

-- Notifications settings
Config.Notifications = {
        ox_lib = function(msg, msgType)
            lib.notify({
                position = 'top',
                type = msgType,
                description = msg,
                duration = 5000
            })
        end,

        tnotify = function(msg, msgType)
            exports['t-notify']:Alert({
                style = msgType,
                message = msg,
                duration = 5000
            })
        end,

        okoknotify = function(msg, msgType)
            exports['okokNotify']:Alert('Notification', msg, 3000, msgType)
        end,

        print = function(msg, _)
            print(msg)
        end,

        framework = function(msg, msgType)
            if Config.Framework == "qbcore" then
                QBCore.Functions.Notify(msg, msgType)
            elseif Config.Framework == "esx" then
                ESX.ShowNotification(msg)
            end
        end
}
```
