Page cover

πŸ’»Installation

Dependencies :

QBCore

You will need the latest version of qb-core

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.

INTERACT OR TARGET

You will need the latest version of Interact or qb-target

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.


Inventories :

QB INVENTORY

Add the items below to the qb-core/shared/items.lua:

    -- ATMs    
    atmcardreader         = { name = 'atmcardreader',                   label = 'ATM Card Reader',                   weight = 100,       type = 'item',      image = 'atmcardreader.png',                                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'ATM Card Reader' }, 
    datatablet            = { name = 'datatablet',                      label = 'Data Tablet',                       weight = 100,       type = 'item',      image = 'datatablet.png',                                              unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Data Tablet' }, 
    atmusb                = { name = 'atmusb',                          label = 'USB',                               weight = 100,       type = 'item',      image = 'atmusb.png',                                                  unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'USB' }, 

Add this into your qb-inventory js file:

        case "atmusb":
            if (itemData.info.used != null){
                return `<p><strong>Storage: </strong><span>${itemData.info.used}/${itemData.info.max}</span></p>`;
            }
QS INVENTORY

Add the items below into your qs-inventory/shared/items.lua

   ['atmcardreader']                  = {
        ['name'] = 'atmcardreader',
        ['label'] = 'ATM Card Reader',
        ['weight'] = 0,
        ['type'] = 'item',
        ['image'] = 'atmcardreader.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'ATM Card Reader...'
    },
    ['datatablet']                  = {
        ['name'] = 'datatablet',
        ['label'] = 'Data Tablet',
        ['weight'] = 0,
        ['type'] = 'item',
        ['image'] = 'datatablet.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'Data Tablet...'
    },
    ['atmusb']                  = {
        ['name'] = 'atmusb',
        ['label'] = 'USB',
        ['weight'] = 0,
        ['type'] = 'item',
        ['image'] = 'atmusb.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'USB...'
    },

Add this into qs-inventory/server/custom/misc/CreateUseableItem.lua

CreateUsableItem('datatablet', function(source, item)
    local src = source
    TriggerClientEvent("zat-atmheist:client:ToggleTablet", src)
end)

Add this into qs-inventory/config/metadata.js

        } else if (itemData.name == "atmusb") {
            $(".item-info-title").html("<p>" + `${itemData.info.label || label}` + "</p>");
            if (itemData.info.used != null){
                $(".item-info-description").html(
                    "<p>Storage : " + itemData.info.used + " / " + itemData.info.max + "</p>"
                );
            }
OX INVENTORY

Add the items below into your ox-inventory/data/items.lua

Add this into ox_inventory/modules/items/client.lua


ENSURE RESOURCES

Last updated