Cadburry ScriptsCadburry Scripts

Language, Blips, Identities & More

Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.

shared.lua

lua
Config = {
    Debug = false,
    Blips = {
        {
            label = 'Cityhall',
            coords = vector3(237.7, -413.07, 48.11),
            sprite = 457,
            scale = 0.7,
            color = 21
        }
    },
    Language = {
        display_idcard = 'Press [Backspace] to close card',
        collect_idcard = '[E] Get Identification',
        failed_id_request = 'Could not process identity information',
        not_enough_money = 'Not enough money',
    },
    Framework = 'qb', -- 'qbox', 'qb', 'esx'
    Notify = 'ox', -- 'qb', 'ox'
    Inventory = 'ox_inventory', -- 'qb-inventory', 'ps-inventory', 'lj-inventory', 'ox_inventory'
    Emotes = nil, -- 'scully_emotemenu', 'rpemotes', 'dpemotes', nil
    Target = 'ox', -- 'ox', 'qb', 'false'
    UseDefaultData = false, -- dont change unless informed to change by Cadburry
    Identities = {
        -- ['ITEM_NAME'] = {
        --     label = 'ITEM LABEL',
        --     icon = 'ICON FROM FONT AWESOME', -- https://fontawesome.com/v6/search?ic=free
        --     price = 500, --  Price to charge when purchasing the item
        --     showInList = true, --  Should it show in the identity collection list?
        --     type = 'idcard', -- Type of idcard [ idcard, drivinglicense, wildlifelicense, barlicense, medicallicense, medialicense, coplicense, flyinglicense, businesslicense, voterid, custom ]
        --     license = 'driver', -- License type to check for, if needed (e.g. driver, id, weapon, etc.)
        --     jobs = { 'police', 'ambulance' }, -- Jobs that can collect this item, if empty all jobs can collect it
        --     emote = 'idcardd', -- Emote to play when using the item
        --     metadata = false, -- Metadata to show/add on the idcard apart from basic details, can be false if not needed
        --     backgroundImage = 'BACKGROUND_IMAGE_LINK', -- Used as card background if type = 'custom'
        -- },
        ['idcard'] = {
            label = 'Request Identity Card',
            icon = 'fa-solid fa-id-card',
            price = 500,
            showInList = true,
            type = 'idcard',
            emote = 'idcardd',
            -- license = 'id',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'height' }
        },
        ['drivinglicense'] =  {
            label = 'Request Driving License',
            icon = 'fa-solid fa-id-card',
            price = 250,
            showInList = true,
            type = 'drivinglicense',
            emote = 'idcardd',
            -- license = 'driver',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'driverNo', 'issued', 'licenseType' }
        },
        ['weaponlicense'] =  {
            label = 'Request Weapon License',
            icon = 'fa-solid fa-id-card',
            price = 250,
            showInList = true,
            type = 'weaponlicense',
            emote = 'idcardd',
            license = 'weapon',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'weaponType' }
        },
        ['wildlifelicense'] =  {
            label = 'Request Wildlife License',
            icon = 'fa-solid fa-id-card',
            price = 250,
            showInList = true,
            type = 'wildlifelicense',
            emote = 'idcardg',
            -- license = 'wildlife',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'nationality' }
        },
        ['barlicense'] =  {
            label = 'Request Bar License',
            icon = 'fa-solid fa-id-card',
            price = 150,
            showInList = true,
            type = 'barlicense',
            emote = 'idcardg',
            jobs = { 'doj', 'lawyer' },
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'designation' }
        },
        ['medicallicense'] =  {
            label = 'Request Medical License',
            icon = 'fa-solid fa-id-card',
            price = 150,
            showInList = true,
            type = 'medicallicense',
            emote = 'idcardg',
            jobs = { 'ambulance', 'medic' },
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'designation' }
        },
        ['medialicense'] =  {
            label = 'Request Media License',
            icon = 'fa-solid fa-id-card',
            price = 150,
            showInList = true,
            type = 'medialicense',
            emote = 'idcardg',
            jobs = { 'news', 'weazelnews' },
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'designation' }
        },
        ['coplicense'] =  {
            label = 'Request Cop Badge',
            icon = 'fa-solid fa-id-card',
            price = 150,
            showInList = true,
            type = 'coplicense',
            emote = 'idcardh',
            jobs = { 'police', 'bcso' },
            metadata = { 'firstname', 'lastname', 'photo', 'sex', 'designation' }
        },
        ['flyinglicense'] =  {
            label = 'Request Flying License',
            icon = 'fa-solid fa-id-card',
            price = 250,
            showInList = true,
            type = 'flyinglicense',
            emote = 'idcard',
            license = 'pilot',
            -- jobs = { 'pilot' },
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'pilotNo', 'licenseType' }
        },
        ['businesslicense'] =  {
            label = 'Request Business License',
            icon = 'fa-solid fa-id-card',
            price = 250,
            showInList = true,
            type = 'businesslicense',
            emote = 'idcard',
            license = 'business',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'businessNo', 'issued' }
        },
        ['voteridcard'] =  {
            label = 'Request Voter ID',
            icon = 'fa-solid fa-id-card',
            price = 150,
            showInList = true,
            type = 'voterid',
            emote = 'idcard',
            metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob', 'issued' }
        },
        ['customidcard'] = {
            label = 'Custom ID Card',
            icon = 'fa-solid fa-id-card',
            price = 0,
            showInList = false,
            type = 'custom',
            emote = 'idcard',
            metadata = false,
            backgroundImage = '',
        },
        -- FOR NEW IDENTITY CARDS
        -- ['ITEM_NAME'] = {
        --     label = 'CARD LABEL',
        --     icon = 'fa-solid fa-id-card', -- icon to show in IdentityCollection list
        --     price = 1000, -- Purchase price via IdentityCollection
        --     showInList = true, -- Should show in IdentityCollection list?
        --     type = 'custom', -- dont change
        --     emote = false, -- emote name
        --     metadata = { 'citizenid', 'firstname', 'lastname', 'photo', 'sex', 'dob' }, -- what all data should show (GetPlayerInfo function framework/server.lua)
        --     backgroundImage = 'CARD_BACKGROUND_IMAGE_URL',
        -- },
    },
    IdentityCollection = { -- These are the locations where players can collect their identities
        { coords = vector3(237.7, -413.07, 48.11), distance = 2 },
        { coords = vector3(232.91, -411.37, 48.11), distance = 2 },
    },
    IdentityMetadataBlacklist = {
        label = true,
        imageurl = true,
        backgroundImage = true,
        degrade = true,
        durability = true,
    }
}

Notes:

  • Language - Edit all the locales

  • Blips - Blips for identity collection locations

  • IdentityCollection - Place to collect identities from

  • Identities - Types of identities available

    lua
    ['ITEM_NAME'] = {
         label = 'ITEM LABEL', -- Identity Item Label
         icon = 'ICON FROM FONT AWESOME', -- https://fontawesome.com/v6/search?ic=free
         price = 500, --  Price to charge when purchasing the item
         showInList = true, --  Should it show in the identity collection list?
         type = 'idcard', -- Type of idcard [ custom, idcard, drivinglicense, wildlifelicense, barlicense, medicallicense, medialicense, coplicense, flyinglicense, businesslicense ]
         license = 'driver', -- License type to check for, if needed (e.g. driver, id, weapon, etc.)
         jobs = { 'police', 'ambulance' }, -- Jobs that can collect this item, if empty all jobs can collect it
         emote = 'idcardd', -- Emote to play when using the item
         metadata = false, -- Metadata to show/add on the idcard apart from basic details, can be false if not needed
         backgroundImage = 'IMAGE_LINK', -- Used as card background if type = 'custom'
    },
Last updated Cadburry Scripts