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.

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)


ZAT - DIALOG (in case you use it) :

Add this to shared/config.lua :

    -- Gruppe 6
    {
        img         = 'https://i.ibb.co/HDCcZNxX/Untitled.png',
        ped         = 's_m_m_armoured_01',
        anim        = 'CODE_HUMAN_MEDIC_TIME_OF_DEATH',
        coords      =  vector4(-23.82, -660.78, 32.48, 186.33),
        job         = "all", -- { ["police"] = 0, ["ambulance"] = 0}  if you are using target
        gang        = "all", -- { ["ballas"] = 2, ["thelostmc"] = 0}  if you are using target
        groups      = "all", -- { ["police"] = 2, ["ambulance"] = 0}  if you are using intearaction
        firstname   = 'ASTA',
        lastname    = 'CLEAN',
        rep         = 0,
        mission     = 'Gruppe6',
        text        = 'Hi there, how can I help you ?',
        buttons     = {
            {
                text= 'I want to work',
                rep = 0,
                answer ='We have a significant amount of cash that needs to be securely transported to various banks across the city. As part of the trusted Gruppe 6 security team, your assistance is essential in ensuring these high-value deliveries reach their destinations safely and without incident.',
                buttons={{
                        text = 'Sign In',
                        shop =false,
                        rep = 0,
                        action= {
                            isServer= false,
                            event= 'zat-gruppe6:client:Signin',
                            data= {}
                        },
                        canInteract = CanToggleSignIn(),
                    },
                    {
                        text = 'Leave Conversation',
                        shop =false,
                        rep = 0,
                        action= {
                            isServer= false,
                            event= 'zat-dialog:client:HideUi',
                            data= {}
                        },
                        canInteract = true
                    }
                },
                canInteract = true
            },
            {
                text = 'Cancel Mission',
                rep = 0,
                shop =false,
                action= {
                    isServer= false,
                    event= 'zat-gruppe6:client:StopWorking',
                    data= {}
                },
                canInteract = true
            },
        },
        items={       
        }
    }, 

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