if amount and amount > 0 and account.money >= amount then
local howlong = 5
local xtime = 1
local minorsec = ''
if xtime == 1 then
minorsec = ' secondes'
elseif xtime == 60 then
minorsec = ' minutes'
end
xPlayer.removeAccountMoney('black_money', amount)
TriggerClientEvent('esx:showNotification', xPlayer.source, ('~g~$' .. ESX.Math.GroupDigits(amount) .. '~s~ Kara Para ~y~temizleniyor~s~ (' .. howlong .. minorsec .. ').'))
Citizen.Wait(1000 * xtime * howlong)
xPlayer.addmoney(amount)
TriggerClientEvent('esx:showNotification', xPlayer.source, ('~g~$' .. ESX.Math.GroupDigits(amount) .. '~s~ ~y~Üzerinize~s~ Eklendi'))
TriggerEvent("esx:washingmoneyalert" ,xPlayer.name,amount)