config.lua

Full View

Config = {}

Config = {
    NotificationSystem = 'ox_lib',  -- Options: 'ox_lib', 'tnotify', 'okoknotify', 'print', 'framework'
    Framework = 'esx',  -- 'esx' or 'qbcore'
    Locale = "en", -- Supported languages: hu, en, de, fr
    InteractionType = "3dtext" -- Options: "ox_target" or "qb-target" or "3dtext"
}

Config.NPC = {
    position = vector4(-700.2885, -1401.3624, 5.4953, 138.3133), -- NPC coordinates (x, y, z, heading)
    model = "u_m_o_taphillbilly", -- NPC model
    showBlip = true, -- Show blip true/false
    blipSprite = 94, -- Blip sprite ID (you can change it if needed)
    blipColor = 2 -- Blip color ID (you can change it if needed)
}

Config.MoneyItem = "money"

Config.Parachutes = {
    ["parachute_rainbow"] = {  
        tint = 0,              -- Rainbow color index
        bag = 69,              -- Bag
        bagVariation = 3,      -- Rainbow bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_rainbow_use",
        usedItem = "parachute_rainbow_used"
    },
    ["parachute_dark_red"] = {  
        tint = 1,              -- Dark Red color index
        bag = 69,              -- Bag
        bagVariation = 4,      -- Dark Red bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_dark_red_use",
        usedItem = "parachute_dark_red_used"
    },
    ["parachute_white_blue_yellow"] = {  
        tint = 2,              -- White & Blue & Yellow color index
        bag = 69,              -- Bag
        bagVariation = 8,      -- White & Blue & Yellow bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_white_blue_yellow_use",
        usedItem = "parachute_white_blue_yellow_used"
    },
    ["parachute_black_red_white"] = {  
        tint = 3,              -- Black & Red & White color index
        bag = 69,              -- Bag
        bagVariation = 8,      -- Black & Red & White bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_black_red_white_use",
        usedItem = "parachute_black_red_white_used"
    },
    ["parachute_red_white_blue"] = {  
        tint = 4,              -- Red & White & Blue color index
        bag = 69,              -- Bag
        bagVariation = 8,      -- Red & White & Blue bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_red_white_blue_use",
        usedItem = "parachute_red_white_blue_used"
    },
    ["parachute_blue"] = {  
        tint = 5,              -- Blue color index
        bag = 69,              -- Bag
        bagVariation = 5,      -- Blue bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_blue_use",
        usedItem = "parachute_blue_used"
    },
    ["parachute_black"] = {  
        tint = 6,              -- Black color index
        bag = 69,              -- Bag
        bagVariation = 9,      -- Black bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_black_use",
        usedItem = "parachute_black_used"
    },
    ["parachute_black_yellow"] = {  
        tint = 7,              -- Black & Yellow color index
        bag = 69,              -- Bag
        bagVariation = 6,      -- Black & Yellow bag variation
        price = 100,           -- Price in shop
        usageItem = "parachute_black_yellow_use",
        usedItem = "parachute_black_yellow_used"
    }
}

Config.ChangeUseItem = 90 -- 90% chance of adding a "used item" after using the parachute so you can use it again

-- Skill Check settings
Config.Check = {
    EnableSkillCheck = true, -- Enable OX_LIB Skill Check.
    ProcessTime = 5,         -- Time in seconds - Only used if EnableSkillCheck is false.
}

-- Skill Check Configuration
Config.SkillCheckDifficulty = {'easy', 'easy', 'easy'}  -- Difficulty levels
Config.SkillCheckKeys = {'w', 'a', 's', 'd'}  -- The buttons that must be pressed during the skill check

-- 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 == "qb-core" then
            QBCore.Functions.Notify(msg, msgType)
        elseif Config.Framework == "esx" then
            ESX.ShowNotification(msg)
        end
    end
}

Last updated