Project-Sloth / ps-housing

Advanced housing system for QBCore.
https://discord.gg/projectsloth
Other
343 stars 110 forks source link

Qb-Management addmoney issue. #161

Closed llamatude closed 11 months ago

llamatude commented 11 months ago

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

llamatude commented 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
xyberviri commented 11 months ago

qb-management no longer handles any money accounts, replace exports['qb-management'] with exports['qb-banking']

MonkeyWhisper commented 11 months ago

https://github.com/Project-Sloth/ps-housing/commit/1c24b64b3a6ce903e540459f0a6b9513fa7a5d8e