Absolutely love this script and have been looking for something like this for a while
Nicely done @HideoutRP and thank you for sharing this with the community
For anyone interested there is a pretty cool abandoned laundromat that can be found here on gta5mods.
Hey man loving the script but when i just have 1 black money on me i can get 2k real cash for it because of the randomized amount, anyway i can set it to be what i put in? like 1k =1k 5k =5k etc? and maybe capped at like 10k
RegisterServerEvent(‘supreme_moneylaunder:GetCash’)
AddEventHandler(‘supreme_moneylaunder:GetCash’, function()
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer.getAccount(‘black_money’).money > 0 then
xPlayer.removeAccountMoney(‘black_money’, 1000)
xPlayer.addMoney(1000)
TriggerClientEvent(‘mythic_notify:client:SendAlert’, source, { type = ‘error’, text = ‘You laundered $1000’, })
else
TriggerClientEvent(‘mythic_notify:client:SendAlert’, source, { type = ‘error’, text = 'You dont have any ', })
end
end)