๐Inventory
Configure the script inventory dependency
Last updated
Configure the script inventory dependency
Last updated
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