Inventory Integration

Add all images from mk_mining/images/ into qb-inventory/html/images

Add gem items metadata

Open file qb-inventory/html/js/app.js

Locate function FormatItemInfo(itemData)

Insert the following else/if statement

else if (itemData.name == 'diamond' || itemData.name == 'ruby' || itemData.name == 'emerald' || itemData.name == 'sapphire') {
    $(".item-info-title").html('<p>'+itemData.label+'</p>')
    $(".item-info-description").html("<p><strong>Quality: </strong>" + itemData.info.gemQuality + "</p>");
}

Example of finished insert:

Last updated