Page cover

💻Installation

Dependencies :

ES-EXTENDED

You will need the latest version of es_extended.

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

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

XSOUND

You will need the latest version of xsound.

  • 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:

    c4_low           = { name = 'c4_low',                  label = 'M112 Demolition Charge',        weight = 100,       type = 'item',     image = 'c4_low.png',                                                unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'M112 Demolition Charge Tier 1.' }, 
    c4_mid           = { name = 'c4_mid',                  label = 'X6 Breaching Charge',           weight = 100,       type = 'item',     image = 'c4_mid.png',                                                unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'X6 Breaching Charge Tier 2.' },
    c4_high          = { name = 'c4_high',                 label = 'T-14 Thermobaric Charge',       weight = 100,       type = 'item',     image = 'c4_high.png',                                               unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'T-14 Thermobaric Charge Tier 3.' },
    baggruppe6       = { name = 'baggruppe6',              label = 'Gruppe6 cash bag',              weight = 100,       type = 'item',     image = 'baggruppe6.png',                                            unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Bag filled with money from bank.' },
    g6tablet         = { name = 'g6tablet',                label = 'Gruppe6 Tablet',                weight = 100,       type = 'item',     image = 'g6tablet.png',                                              unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Gruppe 6 tablet.'},
OX_INVENTORY

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

["c4_mid"] = {
		label = "X6 Breaching Charge",
		weight = 100,
		stack = true,
		close = true,
		description = "X6 Breaching Charge",
		client = {
			image = "c4_mid.png",
		}
	},

	["c4_high"] = {
		label = "T-14 Thermobaric Charge",
		weight = 100,
		stack = true,
		close = true,
		description = "T-14 Thermobaric Charge",
		client = {
			image = "c4_high.png",
		}
	},

	["c4_low"] = {
		label = "M112 Demolition Charge",
		weight = 100,
		stack = true,
		close = true,
		description = "M112 Demolition Charge",
		client = {
			image = "c4_low.png",
		}
	},

	["baggruppe6"] = {
		label = "Money bag",
		weight = 100,
		stack = true,
		close = true,
		description = "Money bag",
		client = {
			image = "baggruppe6.png",
		}
	},

	["g6tablet"] = {
		label = "Gruppe6 Tablet",
		weight = 100,
		stack = true,
		close = true,
		description = "Gruppe 6 tablet.",
		client = {
			image = "g6tablet.png",
		}
	},

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

Item('c4_low', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-gruppe6:client:PlantBomb", 1, slot.name)
		end
	end)
end)

Item('c4_mid', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-gruppe6:client:PlantBomb", 2, slot.name)
		end
	end)
end)

Item('c4_high', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-gruppe6:client:PlantBomb", 3, slot.name)
		end
	end)
end)

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

QS-INVENTORY

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

['c4_mid'] = {
    ['name'] = 'c4_mid',
    ['label'] = 'X6 Breaching Charge',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'c4_mid.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'X6 Breaching Charge'
},

['c4_high'] = {
    ['name'] = 'c4_high',
    ['label'] = 'T-14 Thermobaric Charge',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'c4_high.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'T-14 Thermobaric Charge'
},

['c4_low'] = {
    ['name'] = 'c4_low',
    ['label'] = 'M112 Demolition Charge',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'c4_low.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'M112 Demolition Charge'
},

['baggruppe6'] = {
    ['name'] = 'baggruppe6',
    ['label'] = 'Money bag',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'baggruppe6.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Money bag'
},

['g6tablet'] = {
    ['name'] = 'g6tablet',
    ['label'] = 'Gruppe6 Tablet',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'g6tablet.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Gruppe 6 tablet.'
},

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

CreateUsableItem('c4_low', function(source, item)
    local src = source
    TriggerClientEvent('zat-gruppe6:client:PlantBomb', src, 1, 'c4_low')
end)

CreateUsableItem('c4_mid', function(source, item)
    local src = source
    TriggerClientEvent('zat-gruppe6:client:PlantBomb', src, 2, 'c4_mid')
end)

CreateUsableItem('c4_high', function(source, item)
    local src = source
    TriggerClientEvent('zat-gruppe6:client:PlantBomb', src, 3, 'c4_high')
end)

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



ADDITIONAL SETUP

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

SOUNDS
  • Copy all files from the [sounds] folder into xsound/client/html/sounds

ENSURE RESOURCES

Last updated