JustScripts
  • Welcome to JustScripts Documentation
  • JustCarWash
    • Installation
    • Config Setup
  • JustHud
    • Configuration
    • Features
    • Chat
    • Placeholders
    • Elements
    • Custom Elements
    • Exports
  • JustHud(Old)
    • Installation
    • Config Setup
    • Events
  • JustTrucker
    • Installation
    • Config Setup
  • JustSecurity
    • Installation
  • JustDrugs
    • Installation
  • JustFarmer
    • Installation
  • JustCases
    • Configuration
    • Exports
    • Tebex integration
  • JustBank
    • Configuration
    • Exports
    • Society Accounts
  • JustDataSync
  • JustFishing
  • JustNotify
    • Exports
Powered by GitBook
On this page
  1. JustBank

Configuration

Config = {}

Config.Framework = "qbcore" -- esx or qbcore
Config.FrameworkSync = true -- Whether should the amount of framework bank account be synced to default card 

-- Inventory to be used for card items, and invoices
-- Possible values: ox_inventory, qb-inventory
Config.Inventory = "qb-inventory"
Config.Target = "qb-target" -- Target to be used for npcs and atms, ox_target or qb-target (set nil to disable)

-- / Which identifier script should use to save player data
-- | Possible values:
-- | character for esx or qbcore character ids (will lose everything on death)
-- \ or simply use other fivem supported identifiers (steam, discord, license)
Config.Identifier = "character"

-- Steam or static url for avatars 
-- For steam you should have steam_webApiKey in your server.cfg
-- Config.Avatar = "https://i.pinimg.com/474x/6e/0b/fb/6e0bfb93176cabbc4c395ae524ec1d2d.jpg"
Config.Avatar = "steam"

Config.Name = "LS Bank" -- Bank name

Config.Currency = "$"

Config.Colors = {
    primary = "#604FB5",
    secondary = "#513eac",
    accent = "#A68CD1"
}

Config.Cards = {
    Prefix = "5530", -- Card prefixs (card numbers are 16 digits)
    Expire = 6, -- Expire date in months
    Max = 6, -- Max cards players can have
    ShouldDepositCost = true, -- Should create price of card deposit in card ? 
    Basic = {
        price = 10, -- Price to create the card
        max = 10000, -- Maximum money before it gets locked set to -1 to disable
        fee = 1, -- How much bank takes for fee for each deposit ? in percentage set to 0 to disable
        colors = {"#858585", "#515152", "#474747"}
    },
    Pro = {
        price = 10000,
        max = 100000,
        fee = 0.1,
        colors = {"#a68cd1", "#604fb5", "#513eac"}
    },
    Ultimate = {
        price = 50000,
        max = 1000000,
        fee = 0,
        colors = {"#d1bf8c", "#b58e4f", "#ac793e"}
    },
    Society = {
        price = nil,
        max = 1000000,
        fee = 0,
        colors = {"#ff1717", "#f54c4c", "#f54c82"}
    }
}

Config.Interests = {
    Enable = true,
    Interval = 3600, -- Interest interval in seconds
    Max = 99999, -- Max interest amount (disable it by setting it to -1)
    Offline = false, -- Should players take interest even if they are offline ?
    Rates = { -- Different cards interest rate in percentage
        Basic = 0.5,
        Pro = 1,
        Ultimate = 5,
        Society = 0
    }
}

Config.Atm = {
    Models = {
        -870868698,
        -1126237515,
        -1364697528,
        506770882
    },
    Range = 2 -- Activation range 
}

Config.Banks = {
    Blip = {
        Enable = true,
        Label = "Bank",
        Type = 272,
        Color = 69
    },
    Peds = {
        Enable = true,
        Model = "U_M_M_BankMan",
        Scenario = "WORLD_HUMAN_CLIPBOARD",
    },
    List = {
        {
            Position = vector4(149.91, -1040.74, 29.374, 160),
            Peds = {
                vector4(149.5513, -1042.1570, 29.3680, 341.6520),
                vector4(148.1, -1041.1570, 29.3680, 341.6520)
            }
        },

        {
            Position = vector4(246.6489, 223.5205, 105.2869, 338.0247),
            Peds = {
                vector4(247.0991, 225.0048, 106.2877, 157.4234),
                vector4(248.9500, 224.3701, 106.2873, 161.7721),
            }
        },

        {
            Position = vector4(-1212.4142, -330.6529, 37.7870, 206.1860),
            Peds = {
                vector4(-1213.3767, -332.6651, 37.7809, 23.8315),
                vector4(-1211.9762, -331.9891, 37.7809, 23.5520),
            }
        },

        {
            Position = vector4(-350.8896, -49.9187, 49.0426, 161.0685),
            Peds = {
                vector4(-352.7676, -50.7607, 49.0364, 342.0287),
                vector4(-351.3990, -51.2730, 49.0365, 340.0123),
            }
        },

        {
            Position = vector4(314.1726, -279.1809, 54.1708, 155.6434),
            Peds = {
                vector4(312.2803, -279.9778, 54.1646, 341.9048),
                vector4(313.7438, -280.5546, 54.1647, 342.6172),
            }
        },

        {
            Position = vector4(1174.8466, 2706.8303, 38.0941, 2.0599),
            Peds = {
                vector4(1176.4861, 2708.2820, 38.0879, 184.1978),
                vector4(1174.9866, 2708.3823, 38.0879, 180.5334),
            }
        },

        {
            Position = vector4(-113.1793, 6470.3037, 31.6267, 310.8636),
            Peds = {
                vector4(-110.1401, 6468.9170, 31.6267, 137.9175),
                vector4(-112.2366, 6471.0581, 31.6267, 130.8016),
                vector4(-111.1329, 6469.9888, 31.6267, 133.1394),
            }
        },

        {
            Position = vector4(-2962.5308, 482.2994, 15.7031, 264.3398),
            Peds = {
                vector4(-2961.2295, 481.4631, 15.6969, 85.4459),
                vector4(-2961.1150, 482.9848, 15.6970, 87.8796),
            }
        },

    }
}

Config.Loans = {
    Enable = true,
    Max = 1, -- Max active loans
    Requirements = { -- Requirements that player should have to get a loan 
        playtime = 100000, -- in seconds (set to 0 to disable)
        networth = 100000, -- networth of player (wallet + all bank acoounts) (set 0 to disable)
        cards = {"basic", "ultimate", "pro"}, -- Which accounts can receive loan ? 
        Jobs = {"police", "unemployed"}, -- Which jobs are allowed to receive loan ? set nil to disable   
    },
    Interests = { -- Loans Interest rates
        Min = 5,
        Max = 50,
    },
    Periods = { -- Repayments period
        Month = 86400, -- How much each month should take in game time ? (it will pass even player is offline) (s)
        Min = 2, -- Minimum periods in months
        Max = 12 -- Maximum periods in months
    },
    Amounts = { -- Loan amounts
        Min = 10000,
        Max = 1000000,
    },
    ForceRepayment = {  -- Should bank claim the repayment if user refuse to pay ?
        Enable = true,
        Delay = 1000, -- How much after the loan is not paid bank should claim it ? (s)
    },
    Suggested = { -- Suggested Loans
        {
            Amount = 10000,
            Period = 12,
            Interest = 15,
        }
    },
    CustomLoans = false -- if set to false, users can only use suggested loans
}

Config.Misc = {
    TransferMin = 10, -- Minimum amount to transfer (set -1 to disable)
    TransactionMax = 1000000, -- Maximum amount of transaction (deposit/withdraw)
    BankNegativeFill = true, -- if user bank accounts are in negative amount, fill the amount using the user wallet
    AllowWalletNegative = true, -- Is negative amounts allowed for wallets ? (doesn't work on qbcore)
}

Config.Billings = {
    Enable = true,
    Command = "createinvoice",
    Key = "F7", -- Open hot key, set nil to disable
    Whitelist = {"police", "unemployed"}, -- Whtielisted Jobs
    Range = 3, -- Player range
    Amount = {
        Min = 1,
        Max = 10000
    },
    Due = { -- In Hours
        Min = 1,
        Max = 999
    },
    ForcePayment = {
        Enable = true, -- Should the invoice amount be reduced automaticlly if user refuse to pay ?
        Delay = 500000, -- How much it should pass from due time for force payment ?
        Interest = 100, -- How much it should be added to invoice amount if it is delayed ? (in %, could be 0)
    }
}

Config.Society = {
    Enable = true,
    Jobs = {"police"}, -- Jobs that have society account by default. (will create upon start if not exist)
    Chiefs = {"boss", "Chief"} -- Which grades has access to society account ?
}

Config.Lang = {
    -- UI Global
    ["NAME"] = Config.Name,
    ["CURRENCY"] = Config.Currency,
    ["ID"] = "Id",
    ["AMOUNT"] = "Amount",
    ["HOME"] = "Home",
    ["TRANSACTIONS"] = "Transactions",
    ["LOANS"] = "Loans",
    ["INVOICES"] = "Invoices",
    ["CARDS"] = "Cards",
    ["CANCEL"] = "Cancel",
    ["EXIT"] = "Exit",
    ["CONFIRM"] = "Confirm",
    ["VIEW_ALL"] = "View All",
    ["WALLET_BALANCE"] = "Wallet Balance",
    ["TOTAL_BALANCE"] = "Total Balance",
    ["BASIC_CARD"] = "Basic",
    ["PRO_CARD"] = "Pro",
    ["ULTIMATE_CARD"] = "Ultimate",
    ["SOCIETY_CARD"] = "Society",
    ["PIN_CODE"] = "PIN Code",
    ["CARD"] = "Card",
    ["TYPE"] = "Type",
    ["DAYS"] = "Days",
    ["MONTH"] = "Month",
    ["MONTHS"] = "Months",
    ["INTEREST"] = "Interest",
    ["INTEREST_RATE"] = "Interest Rate",
    ["FINISHED"] = "Finished",
    ["DONE"] = "Done",
    ["TOTAL"] = "Total",
    ["INCOME"] = "Income",
    ["SPENDING"] = "Spending",
    ["LAST_DAYS"] = "Last 7 days",


    -- UI ATM 
    ["ENTER_PIN"] = "Enter PIN",
    ["LOGIN"] = "Login",
    ["TRANSFER"] = "Transfer",
    ["W/D"] = "Withdraw / Deposit",
    
    -- UI Cards page
    ["MY_CARDS"] = "My Cards",
    ["SELECT_YOUR_CARD"] = "Select Your Card",
    ["ADD_CARD"] = "Add Card",

    -- UI Invoices 
    ["CREATE_INVOICE"] = "Create Invoice",
    ["CREATE_INVOICE_SUB"] = "Select a player to send the invoice",
    ["CREATE_INVOICE_PLAYER"] = "Choose Near Player",
    ["CREATE_INVOICE_DUE"] = "Due (Hours)",
    ["CREATE_INVOICE_TITLE"] = "Invoice title",
    ["CREATE_INVOICE_DESCRIPTION"] = "Invoice description",
    ["CREATE_INVOICE_SUBMIT"] = "Send Invoice",
    ["INVOICES_SUB"] = "Invoices list",
    ["INVOICES_AUTHOR"] = "Author",
    ["INVOICES_TO"] = "To",
    ["INVOICES_TITLE"] = "Title",
    ["INVOICES_DESCRIPTION"] = "Description",
    ["INVOICES_STATUS"] = "Status",
    ["INVOICES_ACTIONS"] = "Actions",
    ["INVOICES_DETAILS"] = "Details", 
    ["INVOICES_DETAILS_SUB"] = "Details of invoices", 
    ["INVOICES_PAY"] = "Pay Invoice",
    ["INVOICES_CONFIRM"] = "Confirm Payment",
    ["INVOICES_PAID"] = "Paid",
    ["INVOICES_UNPAID"] = "Unpaid",


    -- UI Loans
    ["LOANS_SUB"] = "Find the perfect loan for your needs",
    ["LOANS_DETAILS"] = "Loan Details",
    ["LOANS_STATUS"] = "Loan Status",
    ["LOANS_NAME"] = "Loan Name",
    ["LOANS_NAME_PLACEHOLDER"] = "Enter loan name",
    ["LOANS_ICON"] = "Loan Icon",
    ["LOANS_REASON"] = "Reason",
    ["LOANS_REASON_PLACEHOLDER"] = "Enter the reason for your loan",
    ["LOANS_AMOUNT"] = "Loan Amount",
    ["LOANS_PERIOD"] = "Loan Period",
    ["LOANS_ESTIMATOR"] = "Loan Estimator",
    ["LOANS_SEND"] = "Send Request",
    ["LOANS_TOTAL_INTEREST"] = "Total Interest",
    ["LOANS_MONTHLY_REPAYMENT"] = "Monthly Repayment",
    ["LOANS_TOTAL_REPAYMENT"] = "Total Repayment",
    ["LOANS_PERIOD_LEFT"] = "Period Left",
    ["LOANS_NEXT_PERIOD"] = "Next Period",
    ["LOANS_PAY_EARLY"] = "Pay Early",
    ["LOANS_PAY"] = "Pay",
    ["GET_LOAN"] = "Get Loan",
    ["YOUR_LOANS"] = "Your Loans",
    ["LEFT"] = "Left",
    ["MONTHS_LEFT"] = "Months left",

    -- Transfers 
    ["TRANSFER_CONFIRM"] = "Do you Confirm this Transfer?",
    ["TRANSFER_TO"] = "To card",
    ["TRANSFER_RECIPIENT"] = "Recipient Name",

    -- Messages
    ["WELCOME"] = "Successfully logged in",
    ["DEPOSITED"] = "Deposited Successfully",
    ["WITHDRAWED"] = "Withdrawed Successfully",
    ["CARD_CREATED"] = "Card created",
    ["CARD_DELETED"] = "Card deleted",
    ["CARD_UPDATED"] = "Card updated",
    ["TRANSFER_COMPLETED"] = "Transfer completed", 
    ["INVOICE_CREATED"] = "Invoice created",
    ["INVOICE_PAID"] = "Invoice paid",
    ["LOAN_SUCCESS"] = "You received loan successfully",

    -- Errors
    ["INSUFFICIENT_WALLET"] = "Insufficient Balance",
    ["INSUFFICIENT_BANK"] = "Insufficient card balance",
    ["WRONG_PIN"] = "PinCode is not correct",
    ["DELETE_MAIN_CARD"] = "You can't delete your main card",
    ["DELETE_CARD_LOAN"] = "You can't delete card with loan",
    ["RECIPIENT_NOT_FOUND"] = "recipient not found",
    ["TRANSFER_SAME"] = "You can't transfer to same card",
    ["TRANSFER_AMOUNT"] = "The amount cannot be lower than %d",
    ["MAIN_CARD_NEGATIVE"] = "Your main card balance is lower than zero please fill it up",
    ["PLAYER_DISTANCE_FAR"] = "Player is too far",
    ["ACTIVE_LOAN"] = "You already have an active unpaid loan",
    ["REQUIREMENTS_LOAN"] = "You don't have loan requirements",
    ["NO_TRANSACTION"] = "There is no transaction to be shown.",

    -- Modals
    ["SUCCESSFUL"] = "Success!",
    ["UNSUCCESSFUL"] = "Unsuccessful!",

    -- Interaction
    ['OPEN_MENU'] = "Press ~INPUT_CONTEXT~ to open bank menu."
}
PreviousJustBankNextExports

Last updated 1 month ago