#Whenever i add a new job to the job.lua i get a black screen

1 messages · Page 1 of 1 (latest)

hushed nimbus
#

hi Qb community i'm fairly new to owning a server kindly forgive my questions
whenever i add a job to the jobs.lua and i try to fly into the city i get a black screen and can't fly in. i make sure to copy and replace an existing job structure so i don't break anything please what am i doing wrong?
this is an example of the job i added that stops me from flying in

naijastatenews = {
label = 'naija state news',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'intern', payment = 50 },
['1'] = { name = 'reporter', payment = 75 },
['2'] = { name = 'journalist', payment = 100 },
['3'] = { name = 'editor', payment = 125 },
['4'] = { name = 'boss', isboss = true, payment = 150 },
}
}

ornate solstice
#
 naijastatenews = {
        label = 'Naija State News',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            ['0'] = { name = 'intern', payment = 50 },
            ['1'] = { name = 'reporter', payment = 75 },
            ['2'] = { name = 'journalist', payment = 100 },
            ['3'] = { name = 'editor', payment = 125 },
            ['4'] = { name = 'boss', isboss = true, payment = 150 },
    },
},

Try this

hushed nimbus
#

same thing sir

ornate solstice
proven nacelle
#

Try this , put it in the middle of the jobs

['naijastatenews'] = { label = 'Naija State News', defaultDuty = true, offDutyPay = false, grades = { ['0'] = { name = 'intern', payment = 50 }, ['1'] = { name = 'reporter', payment = 75 }, ['2'] = { name = 'journalist', payment = 100 }, ['3'] = { name = 'editor', payment = 125 }, ['4'] = { name = 'boss', isboss = true, payment = 150 }, } },

ornate solstice
proven nacelle
#

No i put the , at the end

#

and added the ['jobname']

#

that was happening on my qbcore and when i put like that the black screen stopped

ornate solstice
#

The [] aren't needed

#

ambulance = { label = 'EMS', type = 'ems', defaultDuty = true, offDutyPay = false, grades = { ['0'] = { name = 'Recruit', payment = 50 }, ['1'] = { name = 'Paramedic', payment = 75 }, ['2'] = { name = 'Doctor', payment = 100 }, ['3'] = { name = 'Surgeon', payment = 125 }, ['4'] = { name = 'Chief', isboss = true, payment = 150 }, }, },
For example

proven nacelle
#

but i think the problem is that he is putting the job in the middle of the other without the ,

ornate solstice