Config settings

--[[
    ⚠️ Support available on my discord ⚠️
    https://discord.gg/kDjjUbWavx
]]

Config = {}
Config.Debug = true -- Set to true if you want to see debug messages
Config.VersionCheck = true -- Set to false if you don't want console notifications when update is available

Config.Framework = "esx"
--[[
    Supported Frameworks:
        • esx | https://github.com/esx-framework/esx-legacy
        • qb | https://github.com/qbcore-framework/qb-core
        • standalone | edit extra/payout.lua to make it compatible
]]

Config.FrameworkEvents = { -- Change these events if you changed their name in your framework script
    esx = { 
        resource_name = 'es_extended',
        main = 'esx:getSharedObject',
        load = 'esx:playerLoaded',
        job = 'esx:setJob'
    },
    qbcore = { 
        resource_name = 'qb-core',
        main = 'QBCore:GetObject',
        load = 'QBCore:Client:OnPlayerLoaded',
        job = 'QBCore:Client:OnJobUpdate',
        gang = 'QBCore:Client:OnGangUpdate',
    }
}

Config.Chance = { -- ⚠️ Only edit this part if you know what you are doing! ⚠️
    --[[ Short tutorial how this part works
        [1]= {
            min = 1.01,
            max = 1.70,
            globalChance = 70
        },
        [2] = {
            min = 1.71,
            max = 2.50,
            globalChance = 30
        }
        when the player places a bet, system is choosing a float at which aviator will crash. With the example above:
        - 70% that aviator will crash between number 1.01 and 1.70
        - 30% that aviator will crash between number 1.71 and 2.50
        - Aviator can go as high as 2.50. Can't be higher than that in this situation

        If you want to make it harder to win, simply change the globalChance for lower min/max numbers. Make sure to check if sum of all globalChance is 100.
    ]] 

    [1] = {
        min = 1.01, -- minimum multiplier
        max = 1.70, -- maximum multiplier
        globalChance = 40 -- chance of getting a number between min and max
    },
    [2] = {
        min = 1.71,
        max = 2.50,
        globalChance = 30
    },
    [3] = {
        min = 2.51,
        max = 4.00,
        globalChance = 20
    },
    [4] = {
        min = 4.01,
        max = 6.00,
        globalChance = 5
    },
    [5] = {
        min = 6.01,
        max = 10.00,
        globalChance = 3
    },
    [6] = {
        min = 10.01,
        max = 30.00,
        globalChance = 2
    }
    -- ⚠️⚠️ Sum of all globalChance has to be 100! ⚠️⚠️
}

Config.EnableCommand = true -- Whether command should be available to open menu
Config.CommandName = "aviator" -- Name of the command to open menu. You can also use client side export exports['coachAviator']:openAviator() in any of your scripts.

Config.UseItem = false -- Whether player can place a bet using an item. If set to false, placing a bet removes cash
Config.ItemName = "coins" -- Item name to place a bet. Works only with Config.UseItem = true

Config.UseSounds = true -- If set to true after placing a bet, winning or losing there will be sound effect. You can change the sounds by replacing files inside ui/sounds folder

HTML_Language = { -- UI Translations
    ["CASINO"] = "CASINO",
    ["AVIATOR"] = "AVIATOR",
    ["FUNDS"] = "FUNDS:",
    ["WARNING"] = "BE CAREFUL! YOU CAN LOSE YOUR MONEY!",
    ["INFO_TOP"] = "BET",
    ["PREFIX"] = "BET",
    ["PLACE_BET"] = "PLACE YOUR BET",
    ["CRASHED"] = "CRASHED:",
    ["WON"] = "WON: ",
    ["LOST"] = "LOST: ",
    ["CASH_OUT"] = "CASH OUT: "
}

Last updated