You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local dirtyMoney = xPlayer.getAccount('black_money').money
local amount = amount
if (dirtyMoney <= 0) then
TriggerClientEvent("esx:showNotification", source, "~y~You do not have money to launder.")
else
local washedMoney = amount * tax
local total = money + washedMoney
local totald = dirtyMoney - amount
xPlayer.setMoney(total)
xPlayer.setAccountMoney('black_money', totald)
TriggerClientEvent("esx:showNotification", source, "You have laundered ~r~$".. tonumber(amount) .."~s~ dirty money.~s~ Now you have ~g~$".. tonumber(total) .."~w~ at your pocket.")