V1.0.2 Patch Notes & Download Link Updated. Also Updated FAQ
Amazing work
Amazing work from Renewed, Great support and knowledgeable devs.
I got it working but when i switch job to âpolice 4â, âmechanic 4â, I donât see their own bank how it was on the video.
Also, where do these go?
Transaction Integrations
exports['Renewed-Banking']:handleTransaction(account, title, amount, message, issuer, receiver, type, transID)
---@param account<string> - job name or citizenid
---@param title<string> - Title of transaction example `Personal Account / ${Player.PlayerData.citizenid}`
---@param amount<number> - Amount of money being transacted
---@param message<string> - Description of transaction
---@param issuer<string> - Name of Business or Character issuing the bill
---@param receiver<string> - Name of Business or Character receiving the bill
---@param type<string> - deposit | withdraw
---@param transID<string> - (optional) Force a specific transaction ID instead of generating one.
---@return transaction<table> {
---@param trans_id<string> - Transaction ID for the created transaction
---@param amount<number> - Amount of money being transacted
---@param trans_type<string> - deposit | withdraw
---@param receiver<string> - Name of Business or Character receiving the bill
---@param message<string> - Description of transaction
---@param issuer<string> - Name of Business or Character issuing the bill
---@param time<number> - Epoch timestamp of transaction
---}
exports['Renewed-Banking']:getAccountMoney(account)
---@param account<string> - Job Name | Custom Account Name
---@return amount<number> - Amount of money account has or false
exports['Renewed-Banking']:addAccountMoney(account, amount)
---@param account<string> - Job Name | Custom Account Name
---@param amount<number> - Amount of money being transacted
---@return complete<boolean> - true | false
exports['Renewed-Banking']:removeAccountMoney(account, amount)
---@param account<string> - Job Name | Custom Account Name
---@param amount<number> - Amount of money being transacted
---@return complete<boolean> - true | false
In your QBCore/Shared/jobs.lua make sure you add
bankAuth = true,
below (Or any rank other than boss that needs access)
isboss = true,
After replacing the qb-managment exports like this
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
You use the exports[âRenewed-Bankingâ]:handleTransaction export anywhere you add/remove money to an bank account (Player your society through Renewed Banking) to log the transaction into the bank. Everything under the export like â@param just explains what you are meant to put in that field.
You can also look at the server side of Banking like the Withdraw/Deposit/Transfer event to see how I used those exports but instead its just a call to the function handleTransaction
howâd you end up fixing this? iâm running into the same problem
You need to download from the Releases not the source code
After downloading the most recent update, deleting and reinstalling the tables, and oxmysql up to date. The script works for the first time someone creates a new character but after that it does not. After the inifinite loading screen if you restart the script it works perfectly fine
ESX Version for this?
originally had no plans for that but i am planning on adding esx support here soon! I will let you know when it happens!
Thanks mate
Never been able to get this to properly work right.
Now the nui just reloop loading no errors pops up F8
You might need to disable Renewed Multi job in the config
Iâll look into it thnx
where do i put the exports stuf to in jobs lua as well
so when i use your script this error shows up
[script:qb-multichara] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:741: SCRIPT ERROR: @qb-core/server/player.lua:138: attempt to index a nil value (field âJobsâ)
[script:qb-multichara] > CheckPlayerData (@qb-core/server/player.lua:138)
[script:qb-multichara] > ref (@qb-core/server/player.lua:24)
[script:qb-multichara] > (@oxmysql/dist/build.js:22033)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)
[script:qb-multichara]
[script:qb-multichara] > handler (@qb-multicharacter/server/main.lua:91)
[script:qb-multichara] > (@oxmysql/dist/build.js:22033)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)
and
[script:Renewed-Banki] SCRIPT ERROR: @Renewed-Banking/server/framework.lua:36: attempt to index a nil value (upvalue âJobsâ)
[script:Renewed-Banki] > GetSocietyLabel (@Renewed-Banking/server/framework.lua:36)
[script:Renewed-Banki] > ref (@Renewed-Banking/server/main.lua:17)
[script:Renewed-Banki] > (@oxmysql/dist/build.js:21810)
[script:Renewed-Banki] > processTicksAndRejections (node:internal/process/task_queues:96)
Hello,
I have everything installed, but the system is looking for ox_target. I though it will use the qb-target.
Anyone know where Iâm supposed to put
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
its literally telling u what to do
- now we can transfer, withdraw and deposit but job and gang bank accounts dont show when we have the bank auth to view the accounts
hello, we have recently moved to qbox but having issues where we tried to updating to V2.1 where we was getting issues to using v2.0.2 with no issues apart from the people who can see the job or gang bank accounts cant see these as it dosent show.