โš™๏ธConfiguration

Check the standard Config!

config.lua
Config = {}

-- General Settings
Config.Locale = "en" -- Language setting: 'en' for English or 'de' for German
Config.esxevent = "es_extended" -- Your esx event
Config.MaxTransfer = 10000000 -- Maximum amount that can be transferred at once
Config.MaxWithdraw = 100000000 -- Maximum amount that can be withdrawn at once
Config.MaxDeposit = 5000000 -- Maximum amount that can be deposited at once
Config.StandingOrderWait = 6000 -- Time in milliseconds between standing order checks
Config.InterestLoopTime = 3600 -- Time in seconds between interest calculations (3600 = 1 hour)
Config.CooldownEnabled = true -- If true, enforces a cooldown between banking actions
Config.CooldownLength = 0 -- Cooldown time in seconds between banking actions
Config.CardPlansOneTime = true -- If true, card plan upgrade costs are one-time; if false, they're recurring payments
Config.IBANPrefix = "DE" -- Country code prefix for generated IBAN numbers (e.g., DE for Germany)
Config.IBANLength = 14 -- Length of the IBAN number (excluding the prefix)
Config.TransferMethods = {
    IBAN = true, -- Allow transfers using IBAN numbers
    ID = true -- Allow transfers using player IDs
}

-- Prices
Config.BasicPlanPrice = 500 -- Cost of the basic banking plan (Gold)
Config.ProPlanPrice = 2000 -- Cost of the pro banking plan (Express)
Config.MasterPlanPrice = 5000 -- Cost of the master banking plan

-- Quick action buttons shown in the UI for quick deposits, withdrawals, and transfers
Config.QuickActions = {
    Deposit = {1010, 5000, 10000, 15000, 25000, 50000}, -- Quick deposit amount options
    Withdraw = {1020, 5000, 10000, 15000, 25000, 50000}, -- Quick withdrawal amount options
    Transfer = {1030, 5000, 10000, 15000, 25000, 50000} -- Quick transfer amount options
}

-- Standing order timing configuration options shown in the UI
Config.StandingOrderIntervals = {
    {
        id = "minute",
        label = "Minutely", -- Every minute
        hours = 0.01666667 -- 1 min (1/60 hour)
    },
    {
        id = "hourly",
        label = "Hourly", -- Hourly
        hours = 1 -- 1 hour
    },
    {
        id = "daily",
        label = "Daily", -- Daily
        hours = 24 -- 24 hours = 1 day
    },
    {
        id = "weekly",
        label = "Weekly", -- Weekly
        hours = 168 -- 168 hours = 7 days
    },
    {
        id = "monthly",
        label = "Monthly ", -- Monthly
        hours = 720 -- 720 hours = 30 days
    }
}

Config.AtmModels = {
    `prop_fleeca_atm`,
    `prop_atm_01`,
    `prop_atm_02`,
    `prop_atm_03`
}

-- Card Item Integration
Config.EnableCreditCardItems = true -- If true, physical credit card items will be used in-game
Config.GiveCardOnFirstJoin = true -- If true, players receive a credit card when first joining
Config.CreditCardItems = {
    FleccaBanking = "fleccabankingcreditcard", -- Item name for basic card
    FleccaGold = "fleccagoldcreditcard", -- Item name for gold card
    FleccaExpress = "fleccaexpresscreditcard", -- Item name for express card
    FleccaMaster = "fleccamastercreditcard" -- Item name for master card
}

-- Animations
Config.Animations = {
    openATM = {
        AnimDict = "mp_common",
        AnimName = "givetake1_a"
    },
    openBank = {
        AnimDict = "pickup_object",
        AnimName = "putdown_low"
    }
}

-- Controls
Config.OpenKey = 38 -- Key code to open banking interface (38 = E)
Config.UseDistanceBank = 1.0 -- Maximum distance in meters to interact with bank
Config.UseDistanceATM = 1.0 -- Maximum distance in meters to interact with ATM

-- Card Types & Features
Config.CardTypes = {
    FleccaBanking = {
        interest = 0.0, -- 0% interest rate
        interestPayHours = 1, -- Pays interest every hour
        standingOrders = false, -- Cannot set up standing orders
        maxStandingOrders = 0, -- Maximum number of standing orders
        unlimitedATMTransactions = false, -- Limited ATM transactions
        maxATMTransactions = 5, -- Maximum ATM transactions per day
        allowNegativeBalance = false, -- Cannot go into overdraft
        maxNegativeBalance = 0 -- Maximum overdraft amount
    },
    FleccaGold = {
        interest = 0.01, -- 1% interest rate
        interestPayHours = 0.01666667, -- Pays interest every minute
        standingOrders = true, -- Can set up standing orders
        maxStandingOrders = 3, -- Maximum number of standing orders
        unlimitedATMTransactions = false, -- Limited ATM transactions
        maxATMTransactions = 10, -- Maximum ATM transactions per day
        allowNegativeBalance = false, -- Cannot go into overdraft
        maxNegativeBalance = 0 -- Maximum overdraft amount
    },
    FleccaExpress = {
        interest = 0.02, -- 2% interest rate
        interestPayHours = 1, -- Pays interest every hour
        standingOrders = true, -- Can set up standing orders
        maxStandingOrders = 5, -- Maximum number of standing orders
        unlimitedATMTransactions = true, -- Unlimited ATM transactions
        maxATMTransactions = 0, -- Not used when unlimited is true
        allowNegativeBalance = true, -- Can go into overdraft
        maxNegativeBalance = 1000 -- Maximum overdraft amount
    },
    FleccaMaster = {
        interest = 0.03, -- 3% interest rate
        interestPayHours = 1, -- Pays interest every hour
        standingOrders = true, -- Can set up standing orders
        maxStandingOrders = 10, -- Maximum number of standing orders
        unlimitedATMTransactions = true, -- Unlimited ATM transactions
        maxATMTransactions = 0, -- Not used when unlimited is true
        allowNegativeBalance = true, -- Can go into overdraft
        maxNegativeBalance = 5000 -- Maximum overdraft amount
    }
}

config_server.lua
ServerConfig = {}

ServerConfig.Discord = {
    On = true,
    title = "S-Banking",
    author = "S-Roleplay",
    color = 16711680,
    avatar_url = "https://media.discordapp.net/attachments/1308892518498177085/1309238237335912508/Static_Logo.png?ex=678568a0&is=67841720&hm=d1e4b395cafad5c9d9cfb67de607da535e4ad50333f4b3417b84476dc636c938&=&format=webp&quality=lossless&width=552&height=552",
    footertext = "S-Scripts",
    icon_url = "https://media.discordapp.net/attachments/1308892518498177085/1309238237335912508/Static_Logo.png?ex=678568a0&is=67841720&hm=d1e4b395cafad5c9d9cfb67de607da535e4ad50333f4b3417b84476dc636c938&=&format=webp&quality=lossless&width=552&height=552",
    thumbnailurl = "https://media.discordapp.net/attachments/1311601083138707476/1311708926265397358/Static_Logo.png?ex=67852b22&is=6783d9a2&hm=bd7dd51bf385df07c04d87929ae73ae2e6fcb34bafb419ebf8b5c3d11f94a2be&=&format=webp&quality=lossless&width=552&height=552"
}

-- Webhook URLs
ServerConfig.Webhook = {
    General = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    Deposit = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    Withdraw = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    Transfer = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    DirectDebit = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    NewPlan = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U",
    AccountChange = "https://discord.com/api/webhooks/1364682089240199210/BTWAqv6B7RKd1xbLNprnllGfkTCVJsN3CeRWixjHKK4Eo_faDH-A4R0u3WAQOtx3L85U"
}

-- Server settings
ServerConfig.OneCardMode = false -- true = only one card per player

If you find any errors in the configuration and you can't fix them yourself, open a ticket!

Last updated