Skip to main content

esx_society

esx_society bossmenu​

There is an example in client/example.lua which shows how to open the boss menu properly. Basically to open the boss menu use this event in client side

For example for esx_policejob go to client/main.lua find this part

esx_policejob/client/main.lua
                elseif CurrentAction == 'menu_boss_actions' then
ESX.UI.Menu.CloseAll()
TriggerEvent('esx_society:openBossMenu', 'police', function(data, menu)
menu.close()

CurrentAction = 'menu_boss_actions'
CurrentActionMsg = _U('open_bossmenu')
CurrentActionData = {}
end, { wash = false }) -- disable washing money

Make it like this

                elseif CurrentAction == 'menu_boss_actions' then
ESX.UI.Menu.CloseAll()
TriggerEvent('CompanyManager:company:openBossMenu')