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.


Inventories :

QB-INVENTORY

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

    gpotablet         = { name = 'gpotablet',                label = 'GO Postal Tablet',                weight = 100,       type = 'item',     image = 'gpotablet.png',                                              unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Go Postal Tablet.'},  
OX_INVENTORY

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

	["gpotablet"] = {
		label = "GO Postal Tablet",
		weight = 100,
		stack = true,
		close = true,
		description = "Go Postal Tablet.",
		client = {
			image = "gpotablet.png",
		}
	},

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

Item('gpotablet', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-gopostal:client:OpenTablet")
		end
	end)
end)

QS-INVENTORY

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

['gpotablet'] = {
    ['name'] = 'gpotablet',
    ['label'] = 'GO Postal Tablet',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'gpotablet.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Go Postal Tablet.'
},

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

CreateUsableItem('gpotablet', function(source, item)
    local src = source
    TriggerClientEvent('zat-gopostal:client:OpenTablet', src)
end)


ZAT - DIALOG (in case you use it) :

Add this to shared/config.lua :


ADDITIONAL SETUP

IMAGES
  • Copy the contents of the [images] folder into your inventory's image directory.

ENSURE RESOURCES

Last updated