ORIGEN inventory

origen tutorial

STEP 1

GO TO origen_inventory/html/js/items.js Copy and paste the content after some displayMeta function

displayMeta('radio', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Alias: </strong><span>' + itemData.info.alias + '</span></p><p><strong>Freq: </strong><span>' + itemData.info.currentFreq + '</span></p><p><strong>Battery: </strong><span>' + itemData.info.battery + '</span></p>');
});

displayMeta('radio_powerbank', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Battery: </strong><span>' + itemData.info.battery + '%</span></p>');
});

displayMeta('bat_low', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Battery level: </strong><span>' + itemData.info.batLevel + '%</span></p>');
});

displayMeta('bat_medium', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Battery level: </strong><span>' + itemData.info.batLevel + '%</span></p>');
});

displayMeta('bat_high', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Battery level: </strong><span>' + itemData.info.batLevel + '%</span></p>');
});

displayMeta('radio_jammer', (itemData, setTitle, setDescription) => {
    setTitle('<p>' + itemData.label + '</p>');
    setDescription('<p><strong>Battery level: </strong><span>' + itemData.info.battery + ' seconds</span></p>');
});

STEP 2

GO TO origen_inventory\bridge\standalone\server -> Line ~71

EXAMPLE

STEP 3

GO TO origen_inventory/config/items.lua and copy and paste this

Last updated

Was this helpful?