In case you are not utilizing ESX last, you’ll need to exchange these items:
server/important.lua
SELECT accounts FROM customers
to
SELECT cash, financial institution FROM customers
shopper/important.lua
exchange the Calculate perform
perform Calculate(d)
native totalCash = 0
native totalBank = 0
native totalBlack = 0
for okay, v in pairs(d) do
totalBank = totalBank + v.financial institution
totalCash = totalCash + v.cash
finish
return totalCash, totalBank, totalBlack
finish