[HELP] ESX_Society MoneyWashCron

Try this

Line 120 server/main.lua
add/edit

if amount and amount > 0 and account.money >= amount then
		local howlong	= 5 
		local xtime 	= 1 -- if 1 = then number above will be in SECONDS. if 60 = in MINUTES
		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, ('You have ~g~$' .. ESX.Math.GroupDigits(amount) .. '~s~ waiting in ~y~money laundering~s~ (' .. howlong .. minorsec .. ').'))
		Citizen.Wait(1000 * xtime * howlong)
		xPlayer.addMoney(amount)
		TriggerClientEvent('esx:showNotification', xPlayer.source, ('YAAY!! ~g~$' .. ESX.Math.GroupDigits(amount) .. '~s~ added to your ~y~society~s~'))

not the best code tho
here is an example on how it works (idk why OBS recorded me lagging)

PS : if you use this method remove the MySQL.Async.execute and WashMoneyCRON functions.
I personally use 5 minutes as wash-money time so i don’t bother adding it to the database