ESX_Society - add company money to boss menu?

So for police, how would I have the option if deputy commisssioner is job grade, I only want them to have the option for employee management and ability to deposit money, no ability to withdraw money…

Is there a script for this already or how would I add this to the code?

Why is it that I have tried all the versions of esx society and still can’t put money in / out and can’t hire people?

I had the same problem as you mate you have to change something in servee main.lua im pretty much sure

hi why i can’t make invoices like in the job cardealer or mechanic or other he just lspd that i manage to fine

hello some have script for put stock get stock in boss menu under esx_society?

Hi, if some of you get this error:

SCRIPT ERROR: @esx_society/cleint/main.lua:206: attempt to index a nil value (global ‘PlayerData’)

ref (@esx_society/client/main.lua:206)
callback(@esx_menu_default/client/main.lua:50)

You might need to change the code, here my “fix” code that work for me:

if data.current.value == ‘check_money’ then
ESX.TriggerServerCallback(‘esx_society:getSocietyMoney’, function(money)
exports[‘mythic_notify’]:DoHudText(‘inform’, ‘Society Money: ’ … money … ’ $’)
end, ESX.PlayerData.job.name)
end

1 Like

How to depoist money?

This one solve my problem not showing the society money, but now it broke the money wash option do you know what coukd it be? I know this an old thread and btw thanks for the code!

I am trying to get this to work, but if I do exactly as shown I get an error when I press the menu option to show society money:

SCRIPT ERROR: @esx_society/client/main.lua:118: attempt to index a nil value (field 'job')

When I remove the part “, PlayerData.job.name” after the end, then it shows that my society has 0 $