Integrations

QBCore

qb-multicharacter

local function GiveStarterItems(source)
    local src = source
    local Player = QBCore.Functions.GetPlayer(src)
    for _, v in pairs(QBCore.Shared.StarterItems) do
        local info = {}
        -- if v.item == 'id_card' then
        --     info.citizenid = Player.PlayerData.citizenid
        --     info.firstname = Player.PlayerData.charinfo.firstname
        --     info.lastname = Player.PlayerData.charinfo.lastname
        --     info.birthdate = Player.PlayerData.charinfo.birthdate
        --     info.gender = Player.PlayerData.charinfo.gender
        --     info.nationality = Player.PlayerData.charinfo.nationality
        -- elseif v.item == 'driver_license' then
        --     info.firstname = Player.PlayerData.charinfo.firstname
        --     info.lastname = Player.PlayerData.charinfo.lastname
        --     info.birthdate = Player.PlayerData.charinfo.birthdate
        --     info.type = 'Class C Driver License'
        -- end
        if v.item == 'id_card' or v.item == 'driver_license' then
            exports.rm_idcard:createCard(src, v.item)
        else
            exports['qb-inventory']:AddItem(src, v.item, v.amount, false, info, 'qb-multicharacter:GiveStarterItems')
        end
    end
end

qb-cityhall

chevron-rightOptional: rm_idcard relies on its own NPC system for purchasing licenses. To avoid player confusion, you should disable the native options in the Cityhall script.hashtag

qb-inventory


QBox

qbx_idcard

Ensure that the qbx_idcard script is not running. If there is a qbx_idcard folder under the [qbx] folder, back it up and delete it. rm_idcard will provide the GetMetaLicense export.

qbx_cityhall

chevron-rightOptional: rm_idcard relies on its own NPC system for purchasing licenses. To avoid player confusion, you should disable the native options in the Cityhall script.hashtag