๐Ÿ‘œInventory

Configure the script inventory dependency

Step 1: Navigate to mm_carkeys/shared/init.lua

Step 2: If you have renamed the core folder, then change the name. Ex: I have renamed qb-inventory to mm_inventory

if GetResourceState('ox_inventory') == 'started' then -- change your inventory script
    Shared.Inventory = 'ox' -- dont touch this
elseif GetResourceState('mm_inventory') == 'started' then -- change your inventory script
    Shared.Inventory = 'qb' -- dont touch this
elseif GetResourceState('ps-inventory') == 'started' then -- change your inventory script
    Shared.Inventory = 'qb' -- dont touch this
elseif GetResourceState('qb-inventory') == 'started' then -- change your inventory script
    Shared.Inventory = 'qb' -- dont touch this
elseif GetResourceState('qs-inventory') == 'started' then -- change your inventory script
    Shared.Inventory = 'qb' -- dont touch this
else
    Shared.Inventory = false
    warn('No Inventory found')
end

QB Based Inventory Addons

In qb-inventory/html/app.js add this in function FormatItemInfo

} else if (itemData.name == "vehiclekey") {
    $(".item-info-title").html('<p>'+itemData.info.label+'</p>');
    $(".item-info-description").html('<p>Plate: '+itemData.description+'</p>');
} else if (itemData.name == "keybag") {
    let msg = "";
    for(let i = 0; i < itemData.info.plates.length; i++) {
        msg += '<p><strong>Vehicle '+(i+1)+': </strong><span>' + itemData.info.plates[i].plate + '</span></p>'
    }
    $(".item-info-title").html('<p>'+itemData.label+'</p>');
    $(".item-info-description").html(msg);

Last updated