So I’m trying to add more grades to my jobs. I don’t know if im doing it wrong but here’s a sample of my shared.lua where I added the grades

['0'] = {

                name = "Cadet",

                payment = 125

            },

            ['1'] = {

                name = "Rank 1",

                payment = 250

            },

            ['2'] = {

                name = "Rank 2",

                payment = 500

            },

            ['3'] = {

                name = "Rank 3",

                payment = 650

            },

            ['4'] = {

                name = "Rank 4",

                payment = 700

            },

            ['5'] = {

                name = "Rank 5",

                payment = 750

            },

So if I’m doing something wrong I would like to know.

1 Like

The way you are doing it is fine so could we see the whole code? Will be somewhere else then. Also what is the problem in general? can’t give yourself the job or?

Seems fine to me, you may have a typo somewhere else in the shared.lua…

1 Like

Here’s my full shared.lua

https://cdn.discordapp.com/attachments/885021885971189780/885352199033597972/shared.lua

And here’s what the f8 console

1 Like

Explains a lot, you forgot a , or a {} somewhere, go to your core and see on which line it failed to parse the scripts

1 Like

Is that in the clients or the shared.lua? Because I haven’t even messed the qb-crypto

Your shared mate it is fucked up, you need to format perfectly. As I said you forgot a , or a {} somewhere or even []. Start up your server and look at the error on your core. And look at the line where it says it can’t parse the script

1 Like

The only things I’ve changed are the configs and the shared.lua plus if edited them I copy pasted and edited it leaving the format the same from the stuff I changed I see nothing wrong I just checked

send me your shared then

Here’s my shared and sorry for the long wait
shared.lua (217.2 KB)

can you please send me a screenshot with the parsing error in the core script, can’t find the missing , {} in such a big file

shared.lua (217.2 KB)
image
You forgot the , after the bossmenu location of ambulance. Also bossmenu location isn’t specified anymore in the shared but rather in the bossmenu script itself so it is worth upgrading.

Ah I see it’s fixed and my code should be updated now

1 Like

where do you put the shared.lua?

The shared.lua goes in resources/[qb]/qb-core

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