[Help] add new lspd ranks

Hi i installed lspd to my server and i want to add new all the ranks i want to be added is:
Chief
Assistant Chief
Deputy Chief
Commander
Captain
Lieutenant
Sergant
Corporal
Officer
Recruit
but when i try to add new ranks i only gets errors plz help

files: esx_policejob – Google Drive

Hi, have you added the ranks to your database ?

i tried but than i get error
and i gotta add the ranks to the config to right?
beacuse whn i add it to the config thats when i get error
and i also need to add so assistant chief can take out a cars and buy guns
if u know how to do it can u go look at my files and change them and than i will copy it

Ok, can you post a screenshot of your error ?

it says error parsing script @esx_policejob/config.lua in resource esx_policejob: @esx_policejob/config.lua:118: ‘}’ expected (to close ‘}’ at line 84) near chief
script error @esx_policejob/client/main.lua:1222: attempt to index a nil value (global ‘config’)

Can you please update the files in the google drive ?

sorry for late responds was having a family dinner
but its updated now

file: esx_policejob – Google Drive

thanks btw

replace space with _

Well, I added the demanded ranks in the config.lua file and I commented values (like helicopter for corporal etc…) so if you want to use them just delete the comments. + Fixed the errors.

I hope that helps you.
esx_policejob.rar (74.6 KB)

but why cant i deposit item and withdraw item sorry for bothering you but can you help me?

do you have an error ?

no i cant see an error

maybe its something in the files thats been removed idk?

1min i’ll check

thank you

Is the problem about withdrawing/desposit items or weapons ?

Did you test it with the basic ranks (recruit / officer / boss …) ?

yes the problem is withdrawing/desposit items or weapons and i tried every rank and its still the same problem
go to client and main.lua and look at line 208 is that the problem maybe?

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