[ESX] disable wash function from esx mafia,gang,cartel etc

i’ve tried adding {wash = false}) where it says (here):
TriggerEvent(‘esx_society:openBossMenu’, ‘cartel’, function(data, menu)

        menu.close()

        CurrentAction     = 'menu_boss_actions'
        CurrentActionMsg  = _U('open_bossmenu')
        CurrentActionData = {}

      end)(here) <-------------

    end

but it does not work and makes the script stop working alltogether, can someone help me? thanks

This is not a server tutorial, please make sure you double check where you post :stuck_out_tongue:

Moved to: #server-development:essentialmode

You must search the part where your menu will be open and take it out, like:

Boss Menu (MainMenu)
Moneytransfer (SecondMenu)
MoneyWash (SecondMenu) <— search this

Next Commandline
MoneyWash (MainMenu)
Drop it (SecondMenu)
Eat it (SecondMenu)
Wasch it (SecondMenu)

two ways, you nead for example eat and drop take wasch it out. You don’t wonna have the MainMenu take it completly out:

Next Commandline
MoneyWash (MainMenu)
Drop it (SecondMenu)
Eat it (SecondMenu)
– Wasch it (SecondMenu)

or

–[[Next Commandline
MoneyWash (MainMenu)
Drop it (SecondMenu)
Eat it (SecondMenu)
Wasch it (SecondMenu)]]–

Not script no help, post a link or a pastebin =)

I had that problem and i Disable it for all gangs,cartel and mafia .
Don’t know how money wash works on your server but in mine only vanilla can was money .

hello how did you disable it??