Integrations
QBCore
qb-multicharacter
Find the GiveStarterItems function.
Update the code for
id_cardanddriver_licenseto utilize thecreateCardexport.
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
endqb-cityhall
Find the giveStarterItems function.
Update the
id_cardanddriver_licenseitems to invoke thecreateCardexport.
Find the qb-cityhall:server:requestId event.
Initialize
id_card,driver_license, andweaponlicenseusing thecreateCardexport.
qb-inventory
Find the qb-inventory:server:useItem event.
Comment out the logic for
id_cardanddriver_licenseto prevent conflicts.
Find the giveitem command.
Modify the logic for
id_cardanddriver_licenseto use thecreateCardexport upon generation.
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.