#Adding for Licenses for Vehicle Operation

1 messages · Page 1 of 1 (latest)

craggy holly
#

Trying to add licenses for Trucks as well as motorcycle license, pilots license, and boat license.

I dont want to break qbcore, how would I add these?

winter mica
#

is this what you mean?

#

thats what i found with licenses in qb, idk if license are an item or not, but if they are, youll need to add it as an item as well

#

@craggy holly it looks like licenses are indeed items, so you will need to add it as items as well, take a look in the link here and youll see how and where

#

with that, youll have everything you need 🙂

craggy holly
#

@winter mica I dont use qb-cityhall for that. I use cs_identification

#

Do I just need to add them as items then?

winter mica
#

well then clearly its in that script lol

#

yes.

#

i assume so

#

idk how cs_identification is built

#
#

this?

craggy holly
#

Not that one, one similar

winter mica
#

or if its even in the config at all

#

or perhaps you know how to lol

craggy holly
#
        enableBuy = true,
        text = 'Commercial Driver\'s License (CDL)',
        price = 1000,
        expireCard = 365,
        licenseCheck = 'cdl',  -- License type check
        customizeUI = {
            cardTitle = 'San Andreas',
            cardLogo = 'image/cdl_logo.png',
            cardFooter = 'Driving Professionally',
            cardColor = {
                primary = '#8E44AD',
                secondary = '#9B59B6'
            },
            textColor = {
                primary = '#FFFFFF',
                secondary = '#34495E'
            },
        }
    },
    ['pilot_license'] = {  -- Pilot License
        enableBuy = true,
        text = 'Pilot License',
        price = 2000,
        expireCard = 180,
        licenseCheck = 'pilot',  -- License type check
        customizeUI = {
            cardTitle = 'San Andreas Aviation',
            cardLogo = 'image/pilot_logo.png',
            cardFooter = 'Sky’s the Limit',
            cardColor = {
                primary = '#1ABC9C',
                secondary = '#16A085'
            },
            textColor = {
                primary = '#FFFFFF',
                secondary = '#2C3E50'
            },
        }
    },    ```

Would I add the licenseCheck thing to the license list in qbcore/config.lua?
winter mica
#

yeah u can just copy one of those and add the one u

#

want

winter mica
#

and then as items

craggy holly
#

Yup they are items

winter mica
#

its been years since i messed with qbcore lol, but it looks like youve done it correct then

#

lemme know how it works

winter mica
#

@craggy holly i assume it works?

craggy holly
#

It works

winter mica
#

Great, enjoy

woeful orchid
#

If everything is good can you mark the thread as resolved please

patent sparrow
#

I used CS identification awhile ago. You still have to add the license in QB, otherwise it's just a card item you're creating with cs_identification, with a fancy picture. That's really all the script does is give you a way to take a picture and put it on the card, uses QB info for the information it displays on the card. I have this guy blocked though so not sure if he can even see this.. 🤷🏼