Hi I have the esx_vehicleshop script installed which allows me to do the car dealer job however when going to buy a vehicle it says I need money in the company account. I go to put money in the account by doing deposit society money and then I get this error in the console.
SCRIPT ERROR: @esx_society/server/main.lua:92: attempt to index a nil value (local ‘society’)
Please can someone tell me how to fix this.
if I go to line 92 of esx_society, he says:
if xPlayer.job.name ~= society.name then
print(('esx_society: %s attempted to call depositMoney!'):format(xPlayer.identifier))
return
end
so in my opinion this may be because of 3 things.
1.sql in database by esx_society is missing or incorrect.
2. config of vehiculeshop
3. config of es_extended
hoping to help you, I’m not 100% sure but it’s possible that it is … tell me again if it’s right.
Thanks man got it working.
1 Like
what was the problem config vehiculeshop or esxtented?
I am creating my server too.
All I did was move start esx_society to the top of my scripts in the config. The jobs were loading before the society so it caused errors.
1 Like