SCRIPT ERROR: @esx_policejob/client/main.lua:1222 and 1248: attempt to index a nil value (global 'Config')

Hello!

I was making my server, installing esx_policejob and I ran into an issue.
I can’t even see the markers for the cloakroom/armory and management.
It says two errors:
SCRIPT ERROR: @esx_policejob/client/main.lua:1222: attempt to index a nil value (global ‘Config’)
SCRIPT ERROR: @esx_policejob/client/main.lua:1248: attempt to index a nil value (global ‘Config’)

Can somebody help me with this?

Image:

Go to the line in client/main.lua and go to line 1222 in the file and see what script or code that has been edited we cannot help you if I cannot see the code or file…

And if it’s not that check that your Configuration File is correct!

I have the same error, here is the code.

Looks like you have some form of error in your config causing it not to load.

Yes I gathered that, just wondering what is wrong with the lines 1222 and 1248.

Nothing usually, if the config can’t load it’s variables can’t be defined

So i cant fix it?
Or try to reinstall?

Yes you can fix it. When you restart the script there should be an error message indicating why the config can’t load.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.