Closed llamatude closed 11 months ago
I did a quick hack to add money to the realestate account.
if Config.QBManagement then
--exports['qb-management']:AddMoney(Config.RealtorJobName, totalAfterCommission)
MySQL.Async.execute('UPDATE `bank_accounts` SET `account_balance` = `account_balance` + @price WHERE `account_name` = @jobname' , {
['@jobname'] = Config.RealtorJobName,
['@price'] = totalAfterCommission
})
else
qb-management no longer handles any money accounts, replace exports['qb-management'] with exports['qb-banking']
When you have Config.QBManagement = true it will fail to sell a house it seems that last week qb-mangement has removed all addmoney function https://github.com/qbcore-framework/qb-management/commit/0bccbc688926eb7a79a921d24ccdcfaac1aa037f