[ESX] [HELP] Turning off washing for all jobs except ESX_Washjob

I am using Esx_washjob and cant for the life of me disable washing for any bossjobs , as soon as i try input anything in the client/main/lua. it completely removes the zones you interact with in the police station,cardealer etc etc. The only job its working for is ambulance currently, and im using the same code, the two different versions given to you from the washjob files.

if data.current.value == ‘boss_actions’ then
TriggerEvent(‘esx_society:openBossMenu’, ‘ambulance’, function(data, menu)
menu.close()
end, {wash = false})
^ this one works only for ambulance job but get the bug trying to use it in ANY other job.

if CurrentAction == ‘menu_boss_actions’ then

ESX.UI.Menu.CloseAll()

TriggerEvent(‘esx_society:openBossMenu’, ‘airlines’, function(data, menu)

 menu.close()

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

end, {wash = false})
^ this one simply does not work on any of the jobs i got installed, the ones I have is bankjob,cardealer,police,mafia.mecano.

Yes I obviously change the 'airlines to the correct name of the job im trying to use it for ^^

Does anyone have a clue what could be wrong with the code? since the first kind is working for ambulance job but not for ANY other job?

Solved it myself, im an idiot… ohwell.

I have the same problem could u help me? :slight_smile:

sure, add me on discord and i could walk you through how i fixed it, more appropriate than taking that whole conversation here. thezunzet#0741

I have the same problem could u help me?:slight_smile:

ask in the original topic, this has nothing to do with FiveM.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.