Step 4

Add items

Do not start the resource without first adding the items to qb-core/shared/items.lua

Items

['weed'] 			 			= {['name'] = 'weed', 							['label'] = 'Weed', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['weed_packaged'] 			 	= {['name'] = 'weed_packaged', 					['label'] = 'weed_packaged', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine'] 					= {['name'] = 'cocaine', 						['label'] = 'cocaine', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine_cut'] 			 	= {['name'] = 'cocaine_cut', 					['label'] = 'cocaine_cut', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_cut.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine_packaged'] 			= {['name'] = 'cocaine_packaged', 				['label'] = 'cocaine_packaged', 		    ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_packaged.png',   	['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['chemicals'] 			 		= {['name'] = 'chemicals', 						['label'] = 'chemicals', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'chemicals.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['meth'] 			 			= {['name'] = 'meth', 							['label'] = 'meth',	 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'meth.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['meth_packaged'] 			 	= {['name'] = 'meth_packaged', 					['label'] = 'meth_packaged', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'meth_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['sorted_money'] 			 	= {['name'] = 'sorted_money', 					['label'] = 'sorted_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'sorted_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['package_money'] 			 	= {['name'] = 'package_money', 					['label'] = 'package_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'package_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},

For qb-core NEW VERSION ONLY

qb-core/shared/items.lua
weed			 		= {['name'] = 'weed', 							['label'] = 'Weed', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
weed_packaged			 	= {['name'] = 'weed_packaged', 					['label'] = 'weed_packaged', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
cocaine				        = {['name'] = 'cocaine', 						['label'] = 'cocaine', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
cocaine_cut			 	= {['name'] = 'cocaine_cut', 					['label'] = 'cocaine_cut', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_cut.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
cocaine_packaged			= {['name'] = 'cocaine_packaged', 				['label'] = 'cocaine_packaged', 		    ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_packaged.png',   	['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
chemicals		 		= {['name'] = 'chemicals', 						['label'] = 'chemicals', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'chemicals.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
meth			 		= {['name'] = 'meth', 							['label'] = 'meth',	 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'meth.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
meth_packaged			 	= {['name'] = 'meth_packaged', 					['label'] = 'meth_packaged', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'meth_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
sorted_money 			 	= {['name'] = 'sorted_money', 					['label'] = 'sorted_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'sorted_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
package_money			 	= {['name'] = 'package_money', 					['label'] = 'package_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'package_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},

Last updated