Esx p advanced money laundering

Money laundering for ESX!

  • set as many laundrysites you like

  • select how much money you can wash

  • select how many cops you need

  • select unique props, heading and locations

  • police can shutdown sites

  • admins can reenable sites

  • database integration

  • you can choose if you want keep laundrysites closed after server restart

  • not obfuscated - edit features and add new features

  • UPDATE 1: Choose washing cut size - thanks @Seidon1

Requirements

  • ESX

  • MySQL

  • Knowledge how to use database

Notes

  • Script comes with information how to set everything up

Youtube link: https://www.youtube.com/watch?v=IVT1Sf_CUbs
Tebex link: https://pamppa.tebex.io/package/4390877 10€

Config

Config = {}

Config.Positions = {

{id=1, v=vector3(10.0, 0.0, 71.0), h=180.0, p="bkr_prop_prtmachine_dryer_spin"},

{id=2, v=vector3(15.925, 0.577, 70.375), h=170.0, p="v_ret_fh_washmach"},

{id=3, v=vector3(0.0, 0.0, 71.0), h=0.0, p="xm_prop_base_computer_01"},

}

Config.MinCopAmount = 1

Config.MinutesForCopCountUpdate = 5

Config.LaundryDrawDistance = 100

Config.MaxDistanceWhileWashing = 3

Config.HowMuchMoneyYouWashInOneTick = 100

Config.HowOftenTickHappensInSeconds = 10

Config.WriteShutDownsToDatabase = true --On next boot closed washers stays closed and admin command opens laundries in database

Config.CommandNameForAdminsToEnableSites = “refreshlaundering” --select command what to use for opening sites

Config.TextWashMessage = “Press ~g~E ~w~to start washing dirty money”

Config.TextWashStop = “Washing - walk away to stop”

Config.TextNotEnoughCops = “Not enough cops”

Config.TextNotEnoughBlackMoney = “Not enough blackmoney”

Config.TextPoliceShutDown = “Press ~r~E~w~ to plant a bomb”

Config.TextPressButton = “Press ~g~G ~w~to detonate”

–[[

Good props:

bkr_prop_prtmachine_dryer_spin

bkr_prop_prtmachine_dryer_op

prop_washer_01

prop_washer_02

prop_washer_03

v_ret_fh_washmach

prop_rub_washer_01

]]

wash

4 Likes

I would move the location vectors serverside and pass to the client on join. Having them grouped inside the config with other client shit is just asking for someone to dump your server files and grab locations for shit.

1 Like

Dope script by the looks of it. Love how police can plant bombs on the dryers tho :joy:

It can be easily edited. Just need to change positions from config → server.lua. Client’s get positions from server side anyways.

Only reason doing it this way was: its noob friendly - everything is in config file.

So do you get 100% return of 20% cutoff is there a config for this ?

1 Like

Its missing cut percent. Will be added in future updates. Players will get 1:1 cash for their black money.

It’s easy to edit changing line in server side:
xPlayer.addMoney(Config.HowMuchMoneyYouWashInOneTick) →
xPlayer.addMoney(math.floor(Config.HowMuchMoneyYouWashInOneTick*0.8))
What changes it to 80% for example. 0.7 = 70%. 0.6=60% etc.

Thanks for pointing that out.

Editing this will fix it ?

Yes. That will change how much player will get cash. Example changes it: 100 blackmoney → 80 cash.

E: Script is now updated - config has Config.WashingCutPercent. Thanks @Seidon1

Excellent script, works really well!

For some reason this popped up… how can I fix this? anyone?

On client 94 line comment it. Add two lines to line start.

image