Help Needed with ESX Framework Server – Issues with Society Accounts and Database Scripts

Hi everyone,

I’m currently running a server based on the ESX framework and I’m experiencing some recurring issues with society accounts and several related scripts. Here’s a detailed description of the problem:

  • The scripts esx_datastore, esx_addoninventory, esx_addonaccount, esx_society, and the script responsible for organizations seem to intermittently fail to read data from the database.
  • This happens despite other scripts, like those handling player data (e.g., name, inventory, owned vehicles), working flawlessly.
  • Sometimes, ox_inventory randomly disables itself and has to be manually restarted. Once restarted, it works fine until the issue reoccurs.
  • When the problem occurs, players temporarily lose access to saved outfits in clothing stores. Restarting the esx_datastore script restores access immediately, but the issue eventually happens again.

One specific example is with esx_society. When players try to deposit or withdraw money from a society account (e.g., taxi), they receive an error saying that the society (e.g., society_taxi) doesn’t exist. After restarting the scripts or the entire server, everything works again, but the problem eventually happens again at random.

It’s worth noting that all the scripts mentioned (esx_datastore, esx_addoninventory, esx_addonaccount, esx_society) are up to date, so outdated scripts shouldn’t be the issue.

I’ve checked my database and ensured that everything is set up correctly, so I’m unsure why this is happening. Has anyone else encountered a similar issue or can offer some guidance on what might be causing this?

Thanks in advance for any help!

in your server.cfg you are starting jobs first and then esx_datastore, esx_addoninventory, esx_addonaccount, esx_society

As you can see jobs are starting at the end, its weird that after server restart everything works fine but after some time, i belive more “movement” from players on server destroys it, i tried everything changing, the order of scripts, incrasing cache size of database etc.

This is when player trie to change outfit:

This is when boss tries to check society account:

This is when boss tries to withdraw or deposit on society account:
image

put es_extended above all