Master Mind Development
DiscordTebexGithub
  • ๐Ÿ’ฐPaid Release
    • ๐Ÿ“ฆAirdrop
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘€Target
        • ๐ŸŽฎMinigame
      • ๐Ÿ‘จโ€๐Ÿ’ปCustomization
        • ๐Ÿ”ฅExplosive Crate
        • ๐Ÿ“งMail
    • ๐ŸŽ๏ธDealership
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
        • ๐Ÿ‘จโ€๐Ÿ’ปInitializing/Configuration
        • ๐Ÿ“ธGenerate Vehicle Images
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘€Target
        • ๐Ÿ““Miscellaneous
      • ๐ŸฌHow to Add Custom Shop
      • โš ๏ธImportant Notes
  • ๐ŸŽFREE RELEASE
    • ๐Ÿ“ปRadio
      • โคต๏ธInsallation
        • ๐ŸŒ‰Bridge Setup
        • ๐Ÿ‘œAdd Item
        • ๐Ÿ‘จโ€๐Ÿ’ปHow to build svelte ui file?
      • ๐Ÿ“’Configuration
        • ๐Ÿ—ผJammer System
        • ๐Ÿ”‹Battery
        • ๐Ÿ“ปChannel Name
        • ๐Ÿ“ปRestricted Radio Channel
      • ๐Ÿ‘จโ€๐Ÿ’ปExports
      • ๐Ÿ’ปBranch
    • ๐Ÿ”‘Car Keys
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘œStack Key
      • ๐Ÿ‘จโ€๐Ÿ’ปUseful Exports
Powered by GitBook
On this page
  1. ๐ŸŽFREE RELEASE
  2. ๐Ÿ”‘Car Keys
  3. ๐Ÿ“’Configuration

๐Ÿ‘œInventory

Configure the script inventory dependency

Last updated 1 year ago

CtrlK

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

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: '

In qb-inventory/html/app.js add this in function generateDescription (test)

case "vehiclekey":
    return `<p><strong>Model: </strong><span>${itemData.info.label}</span></p>
    <p><strong>Plate: </strong><span>${iitemData.info.plate}</span></p>`
case "keybag":
    let msg = "";

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
+
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);
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>`
}
return msg;