#categorize vehicles

1 messages · Page 1 of 1 (latest)

lavish lintel
#

Hello I am trying to categorize my PD vehicles inside the qbcore-policejob config.lua

Plan is to third eye, Police Garage, then select a divison and still using 0,1,2,3,4 as a grade to determine which vehicle they can use.

Does anyone know how to do this?

harsh tartan
#

send the config

#

-- Grade 0 and higher
[0] = {
police = 'Police Car 1',
police2 = 'Police Car 2',
police3 = 'Police Car 3',
police4 = 'Police Car 4',
policeb = 'Police Car 5',
policet = 'Police Car 6',
sheriff = 'Sheriff Car 1',
sheriff2 = 'Sheriff Car 2',
},
[1] = {
police = 'Police Car 1',
police2 = 'Police Car 2',
police3 = 'Police Car 3',
police4 = 'Police Car 4',
policeb = 'Police Car 5',
policet = 'Police Car 6',
sheriff = 'Sheriff Car 1',
sheriff2 = 'Sheriff Car 2',
},

[2] = {
    police = 'Police Car 1',
    police2 = 'Police Car 2',
    police3 = 'Police Car 3',
    police4 = 'Police Car 4',
    policeb = 'Police Car 5',
    policet = 'Police Car 6',
    sheriff = 'Sheriff Car 1',
    sheriff2 = 'Sheriff Car 2',
},

}

lavish lintel
#

I got that so far, I just wanna categorize them within divisions if you get what im saying

#

So someone who is a grade 1 lets say within ARV have access to ARV grade 1 vehicles from that menu

lavish lintel
harsh tartan
#

its the same for with the template

#

i gave u can set it based on the job

lavish lintel
# harsh tartan

can you jump in support vc real quick, might be easier to explain what I mean

harsh tartan
#
        label = 'Law Enforcement',
        defaultDuty = true,
        offDutyPay = false,
        type = "leo",
        grades = {
            ['0'] = {
                name = 'cadet',
                payment = 100
            },
            ['1'] = {
                name = 'prbation',
                payment = 400
            },
            ['2'] = {
                name = 'Officer1',
                payment = 400
            },
            ['3'] = {
                name = 'Officer2',
                payment = 400
            },
            ['4'] = {
                name = 'Officer3',
                payment = 400
            },
            ['5'] = {
                name = 'Sergeant',
                payment = 400
            },
            ['6'] = {
                name = 'Lieutenant',
                payment = 400
            },
            ['7'] = {
                name = 'captin',
                isboss = true,
                payment = 400
            },
            ['8'] = {
                name = 'Major',
                payment = 400
            },
            ['9'] = {
                name = 'commander',
                isboss = true,
                payment = 400
            },
            ['10'] = {
                name = 'asstChief',
                isboss = true,
                payment = 400
            },
            ['11'] = {
                name = 'Chief',
                isboss = true,
                bankAuth = true,               
                payment = 400
            },
            ['12'] = {
                name = 'asst comminisor',
                isboss = true,
                bankAuth = true,               
                payment = 400
            },
            ['13'] = {
                name = 'comminisor',
                isboss = true,
                bankAuth = true,               
                payment = 400
            },
        },    
    },```
lavish lintel
harsh tartan
#

Yea

lavish lintel
#

How do I delete my old garages from PD?

lavish lintel
kind sedge
harsh tartan
lavish lintel
#

so just use "" over the section of coding?

kind sedge
#

--- to comment out

#

So comment out any line that's for PD garages

lavish lintel
#

any ideas?

#

@kind sedge @harsh tartan

harsh tartan
lavish lintel
#

I didnt do anything?

harsh tartan
#

what did u change

lavish lintel
#

absolutely nothing which is the weird thing

harsh tartan
#

just inore that error if nothing is broken

lavish lintel
lavish lintel
lavish lintel
# harsh tartan just inore that error if nothing is broken

SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:750: SCRIPT ERROR: @qb-core/server/player.lua:105: attempt to index a nil value (field 'Jobs')
[script:qb-multichara] > CheckPlayerData (@qb-core/server/player.lua:105)
[script:qb-multichara] > ref (@qb-core/server/player.lua:21)
[script:qb-multichara] > rawExecute (@oxmysql/dist/build.js:26154)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)
[script:qb-multichara]
[script:qb-multichara] > handler (@qb-multicharacter/server/main.lua:91)
[script:qb-multichara] > rawExecute (@oxmysql/dist/build.js:26154)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)

lavish lintel
kind sedge
#

its your [qb]/qbcore/shared/jobs.lua

harsh tartan
kind sedge
harsh tartan
#

i got it fixed quick

lavish lintel
#

❤️

harsh tartan
#

@kind sedge this is good to be closed