overextended / ox_core

Player and vehicle management and persistence for FiveM.
https://overextended.dev/ox_core
GNU Lesser General Public License v3.0
152 stars 124 forks source link

fix(server/accounts): transaction new balance #178

Closed SamShanks1 closed 3 weeks ago

SamShanks1 commented 3 weeks ago

When removing money using account.removeBalance() ox_banking transaction log shows the balance as if it was added.

image

image

ox_banking uses from balance as newBalance, so we are now updating the balance by taking away the amount if addAction is not "add".