[SOLVED] esx_society can't detect any society

Hello, I have a problem with esx_society.
When I use the boss menu everything works fine except the deposit/withdraw money. When I try to do it it just says on the server console this error:
[ script:esx_society] [WARNING] Player 1 attempted to withdraw from non-existing society - ambulance!
All the other menus work fine like the change salary, change label, promote, fire, recruit.
Any ideas as to why this is happening? Thank you in advance!

What version of esx_society and esx_ambulancejob are you using?

esx_society version 1.0

The thing is, now all the “normal jobs” work. (I added the exports needed) Now only the jobs I created throw that error. I’ve had this problem for over a year now.

Have you registered the societies?

I have the jobs on the database at:
addon_account
addon_account_data
addon_inventory
datastore
datastore_data
I never registered the societies throught a script if that’s what youre asking.

You need to register the society before you can use it, otherwise you can’t use it as it technically doesn’t exist.

And where would I register said societies? Just in any client/server.lua or?

Use the below server-side event to register the society, replacing any references to mechanic with the name of your job.

TriggerEvent('esx_society:registerSociety', 'mechanic', 'mechanic', 'society_mechanic', 'society_mechanic', 'society_mechanic', {type = 'private'})
1 Like

You sir are a life saver! Thank you so much for the help! After 1 long year I can finally use societies!