Inventory integrations
KuzQuality | Placeable items
Adding "Place" options to your inventory system
qb-inventory (new)
qb-inventory/html/index.html
qb-inventory/html/index.html<li @click="placeItem(contextMenuItem)">Place</li><ul v-if="showContextMenu" class="context-menu" :style="{ top: contextMenuPosition.top, left: contextMenuPosition.left }">
<li v-if="contextMenuItem.useable" @click="useItem(contextMenuItem)">Use</li>
<li @click="placeItem(contextMenuItem)">Place</li>
<li @mouseover="showSubmenu = true" @mouseleave="showSubmenu = false">qb-inventory/html/app.js
qb-inventory/html/app.jsasync placeItem(item) {
if (!item) {
return;
}
const playerItemKey = Object.keys(this.playerInventory).find((key) => this.playerInventory[key] && this.playerInventory[key].slot === item.slot);
if (playerItemKey) {
try {
await axios.post("https://kq_placeable_items/HookPlaceItem", {
item: item.name,
size: 1,
});
if (item.shouldClose) {
this.closeInventory();
}
} catch (error) {
console.error("Error placing the item: ", error);
}
}
this.showContextMenu = false;
},qb-inventory (old)
qb-inventory/html/ui.html
qb-inventory/html/ui.htmlqb-inventory/html/js/app.js
qb-inventory/html/js/app.jsps-inventory
ps-inventory/html/ui.html
ps-inventory/html/ui.htmlps-inventory/html/js/app.js
ps-inventory/html/js/app.jsqs-inventory (Quasar) (Only v2)
es_extended (default inventory)
es_extended/client/functions.lua
es_extended/client/functions.luaes_extended/locales/en.lua (or the locale you use)
es_extended/locales/en.lua (or the locale you use)lj-inventory
lj-inventory/html/js/app.js
lj-inventory/html/js/app.jslj-inventory/html/ui.html
lj-inventory/html/ui.htmlesx_inventoryhud
esx_inventoryhud/html/ui.html
esx_inventoryhud/html/ui.htmlesx_inventoryhud/html/js/inventory.js
esx_inventoryhud/html/js/inventory.jsLast updated