# Renewed-Banking Buy Me a Coffee at ko-fi.com [Renewed Discord](https://discord.gg/P3RMrbwA8n) # Project Description This resource was created by myself and was not a fork of any of the other banking resources. So lets not say "Isnt this x banking 🤓" because its not. The user interface was heavily inspired by No Pixels Banking Interface. This resource is a replacement for qb-banking, qb-atm, qb-managment # Dependencies * [oxmysql](https://github.com/overextended/oxmysql) * [QBCore](https://github.com/qbcore-framework/qb-core) * [QB-Target](https://github.com/qbcore-framework/qb-target) * [QB-Menu](https://github.com/qbcore-framework/qb-menu) * [QB-Input](https://github.com/qbcore-framework/qb-input) * [progressbars](https://github.com/Project-Sloth/progressbar) # Features * Personal, Job, Gang, Shared Accounts * Withdraw, Deposit, Transfer between accounts * Offline Player Full Support * QB Target Support * Optimized Resource (0.00ms Running At All Times) # Installation 1) Insert the SQL provided 2) Edit your QBCore/Shared/jobs.lua and add `bankAuth = true` to the job grades which have access to society funds ## Transaction Integrations ```lua exports['Renewed-Banking']:handleTransaction(account, title, amount, message, issuer, receiver, type, transID) ---@param account - job name or citizenid ---@param title - Title of transaction example `Personal Account / ${Player.PlayerData.citizenid}` ---@param amount - Amount of money being transacted ---@param message - Description of transaction ---@param issuer - Name of Business or Character issuing the bill ---@param receiver - Name of Business or Character receiving the bill ---@param type - deposit | withdraw ---@param transID - (optional) Force a specific transaction ID instead of generating one. ---@return transaction { ---@param trans_id - Transaction ID for the created transaction ---@param amount - Amount of money being transacted ---@param trans_type - deposit | withdraw ---@param receiver - Name of Business or Character receiving the bill ---@param message - Description of transaction ---@param issuer - Name of Business or Character issuing the bill ---@param time - Epoch timestamp of transaction ---} exports['Renewed-Banking']:getAccountMoney(account) ---@param account - Job Name | Custom Account Name ---@return amount - Amount of money account has or false exports['Renewed-Banking']:addAccountMoney(account, amount) ---@param account - Job Name | Custom Account Name ---@param amount - Amount of money being transacted ---@return complete - true | false exports['Renewed-Banking']:removeAccountMoney(account, amount) ---@param account - Job Name | Custom Account Name ---@param amount - Amount of money being transacted ---@return complete - true | false ``` ## qb-managment conversion ```lua exports['qb-management']:GetAccount => exports['Renewed-Banking']:getAccountMoney exports['qb-management']:AddMoney => exports['Renewed-Banking']:addAccountMoney exports['qb-management']:RemoveMoney => exports['Renewed-Banking']:removeAccountMoney exports['qb-management']:GetGangAccount=> exports['Renewed-Banking']:getAccountMoney exports['qb-management']:AddGangMoney=> exports['Renewed-Banking']:addAccountMoney exports['qb-management']:RemoveGangMoney=> exports['Renewed-Banking']:removeAccountMoney ``` ## Change Logs V1.0.1 ``` Added Banking Blips ```