fix(readMe): add Event for qb functions#11
Conversation
Event OnMoneyChange wasn't triggered which caused issues for example, with ox_inventory where it didn't update player money
|
this makes it so that double the funds are put in the bank account!! |
@Millusion Can't replicate, could you please give me some repro steps ? |
|
on line 32 you run exports.pefcl:addBankBalance(self.PlayerData.source, data) then on line 46 and 47 you run TriggerClientEvent('QBCore:Client:OnMoneyChange', self.PlayerData.source, moneytype, amount, "add", reason) This adds again the same amount to the bank account. So double payments are made. I tested this with latest qb-core and latest PEFCL and when running a loop payment that runs QBCore.Functions.AddMoney with value 100, i see my DB record update with 200 value. |
Event OnMoneyChange wasn't triggered which caused issues for example, with ox_inventory where it didn't update player money
Pull Request Description
Event OnMoneyChange wasn't triggered which caused issues for example, with ox_inventory where it didn't update player money
Pull Request Checklist:
resourcein-game after the relevant change?