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?