Page cover

πŸ’»Installation

Dependencies :

chevron-rightQBCorehashtag

You will need the latest version of qb-corearrow-up-right

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

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

ITEMS

chevron-rightQB INVENTORYhashtag

Go to qb-core/shared/items.lua and add this :

    -- boosting
    boos_tablet                  = { name = 'boos_tablet',        label = 'Boosting Tablet',                       weight = 100,       type = 'item',      image = 'boos_tablet.png',                   unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Boosting Tablet...' },  
    boos_lockpick                = { name = 'boos_lockpick',      label = 'Auto Jiggler',                           weight = 100,       type = 'item',      image = 'boos_lockpick.png',                   unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Lockpick...' },  
    boos_hacktool                = { name = 'boos_hacktool',      label = 'EMF Disruptor',                          weight = 100,       type = 'item',      image = 'boos_hacktool.png',                   unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Hack Tool...' },  
    boos_scanner                 = { name = 'boos_scanner',       label = 'KFB Scanner',                            weight = 100,       type = 'item',      image = 'boos_scanner.png',                   unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Scanning Tool...' },  
    boos_box                     = { name = 'boos_box',           label = 'Delivery Parcel',                        weight = 100,       type = 'item',      image = 'boos_box.png',                   unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Delivery Parcel...' },  
    
    -- add these if you do not have them
    plastic                      = { name = 'plastic', label = 'Plastic', weight = 100, type = 'item', image = 'plastic.png', unique = false, useable = false, shouldClose = false, description = 'RECYCLE! - Greta Thunberg 2019' },
    copper                       = { name = 'copper', label = 'Copper', weight = 100, type = 'item', image = 'copper.png', unique = false, useable = false, shouldClose = false, description = 'Nice piece of metal that you can probably use for something' },
    aluminum                     = { name = 'aluminum', label = 'Aluminium', weight = 100, type = 'item', image = 'aluminum.png', unique = false, useable = false, shouldClose = false, description = 'Nice piece of metal that you can probably use for something' },
    steel                        = { name = 'steel', label = 'Steel', weight = 100, type = 'item', image = 'steel.png', unique = false, useable = false, shouldClose = false, description = 'Nice piece of metal that you can probably use for something' },
    rubber                       = { name = 'rubber', label = 'Rubber', weight = 100, type = 'item', image = 'rubber.png', unique = false, useable = false, shouldClose = false, description = 'Rubber, I believe you can make your own rubber ducky with it :D' },
    glass                        = { name = 'glass', label = 'Glass', weight = 100, type = 'item', image = 'glass.png', unique = false, useable = false, shouldClose = false, description = 'It is very fragile, watch out' },
chevron-rightOX INVENTORYhashtag

Go to ox_inventory/data/items.lua and add this :

	["boos_lockpick"] = {
		label = "Boosting Lockpick",
		weight = 100,
		stack = true,
		close = true,
		description = "Lockpick...",
		client = {
			image = "boos_lockpick.png",
		}
	},

	["boos_hacktool"] = {
		label = "EMF Disruptor",
		weight = 100,
		stack = true,
		close = true,
		description = "Hack Tool...",
		client = {
			image = "boos_hacktool.png",
		}
	},

	["boos_scanner"] = {
		label = "Digi Scanner",
		weight = 100,
		stack = true,
		close = true,
		description = "Scanning Tool...",
		client = {
			image = "boos_scanner.png",
		}
	},

	["boos_keys"] = {
		label = "Auto Jiggler",
		weight = 100,
		stack = true,
		close = true,
		description = "Lockpick...",
		client = {
			image = "boos_lockpick.png",
		}
	},

	["boos_box"] = {
		label = "Delivery Parcel",
		weight = 100,
		stack = true,
		close = true,
		description = "Delivery Parcel...",
		client = {
			image = "boos_box.png",
		}
	},

	["boos_tablet"] = {
		label = "Boosting Tablet",
		weight = 100,
		stack = true,
		close = true,
		description = "Boosting Tablet...",
		client = {
			image = "boos_tablet.png",
		}
	},
  -- add these if you don't have them 
  ["plastic"] = {
		label = "Plastic",
		weight = 100,
		stack = true,
		close = false,
		description = "RECYCLE! - Greta Thunberg 2019",
		client = {
			image = "plastic.png",
		}
	},
	["copper"] = {
		label = "Copper",
		weight = 100,
		stack = true,
		close = false,
		description = "Nice piece of metal that you can probably use for something",
		client = {
			image = "copper.png",
		}
	},
	["aluminum"] = {
		label = "Aluminium",
		weight = 100,
		stack = true,
		close = false,
		description = "Nice piece of metal that you can probably use for something",
		client = {
			image = "aluminum.png",
		}
	},
	["steel"] = {
		label = "Steel",
		weight = 100,
		stack = true,
		close = false,
		description = "Nice piece of metal that you can probably use for something",
		client = {
			image = "steel.png",
		}
	},
	["rubber"] = {
		label = "Rubber",
		weight = 100,
		stack = true,
		close = false,
		description = "Rubber, I believe you can make your own rubber ducky with it :D",
		client = {
			image = "rubber.png",
		}
	},
	["glass"] = {
		label = "Glass",
		weight = 100,
		stack = true,
		close = false,
		description = "It is very fragile, watch out",
		client = {
			image = "glass.png",
		}
	},

Go to ox_inventory/modules/items/client.lua and add this :

Item('boos_tablet', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-boosting:client:UseBoostingTablet")
		end
	end)
end)

Item('boos_box', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-boosting:server:GiveBoostingBoxItems", slot.metadata)
		end
	end)
end)

Item('boos_scanner', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent('zat-boosting:client:StartKeyScanning')
		end
	end)
end)

Item('boos_lockpick', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent('zat-boosting:client:UnlockVehicle')
		end
	end)
end)

Item('boos_hacktool', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent('zat-boosting:client:StartTrackingHack')
		end
	end)
end)
chevron-rightQS INVENTORYhashtag

Go to qs-inventory/shared/items.lua and add this :

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

['boos_hacktool'] = {
    name = 'boos_hacktool',
    label = 'EMF Disruptor',
    weight = 100,
    type = 'item',
    image = 'boos_hacktool.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Hack Tool...',
},

['boos_scanner'] = {
    name = 'boos_scanner',
    label = 'Digi Scanner',
    weight = 100,
    type = 'item',
    image = 'boos_scanner.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Scanning Tool...',
},

['boos_keys'] = {
    name = 'boos_keys',
    label = 'Auto Jiggler',
    weight = 100,
    type = 'item',
    image = 'boos_lockpick.png',
    unique = false,
    useable = false,
    shouldClose = true,
    combinable = nil,
    description = 'Lockpick...',
},

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

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

-- Materials
['plastic'] = {
    name = 'plastic',
    label = 'Plastic',
    weight = 100,
    type = 'item',
    image = 'plastic.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'RECYCLE! - Greta Thunberg 2019',
},

['copper'] = {
    name = 'copper',
    label = 'Copper',
    weight = 100,
    type = 'item',
    image = 'copper.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'Nice piece of metal that you can probably use for something',
},

['aluminum'] = {
    name = 'aluminum',
    label = 'Aluminium',
    weight = 100,
    type = 'item',
    image = 'aluminum.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'Nice piece of metal that you can probably use for something',
},

['steel'] = {
    name = 'steel',
    label = 'Steel',
    weight = 100,
    type = 'item',
    image = 'steel.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'Nice piece of metal that you can probably use for something',
},

['rubber'] = {
    name = 'rubber',
    label = 'Rubber',
    weight = 100,
    type = 'item',
    image = 'rubber.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'Rubber, I believe you can make your own rubber ducky with it :D',
},

['glass'] = {
    name = 'glass',
    label = 'Glass',
    weight = 100,
    type = 'item',
    image = 'glass.png',
    unique = false,
    useable = false,
    shouldClose = false,
    combinable = nil,
    description = 'It is very fragile, watch out',
},

Go to qs-inventory/server/custom/misc/CreateUseableItem.lua and add this :

CreateUsableItem('boos_tablet', function(source, item)
    local src = source
    TriggerClientEvent('zat-boosting:client:UseBoostingTablet', src)
end)

CreateUsableItem('boos_box', function(source, item)
    local src = source
    TriggerClientEvent('zat-boosting:client:UseBoostingBox', src, item.info)
end)

CreateUsableItem('boos_scanner', function(source, item)
    local src = source
    TriggerClientEvent('zat-boosting:client:StartKeyScanning', src)
end)

CreateUsableItem('boos_lockpick', function(source, item)
    local src = source
    TriggerClientEvent('zat-boosting:client:UnlockVehicle', src)
end)

CreateUsableItem('boos_hacktool', function(source, item)
    local src = source
    TriggerClientEvent('zat-boosting:client:StartTrackingHack', src)
end)

ENSURE RESOURCES

Last updated