Step 7

Items and their utilities

In case you use qb-core, then you should completely ignore the shared/*.lua folder that exists inside qs-inventory. Since in your Framework we will use the same shared/.*lua that is inside qb-core.

Do not continue installing or running the asset without adding the following items to your qb-core/shared/items.lua.

We take care of programming this system according to the needs and comforts of each player, therefore in qb-core version, you must use the same database that qb-core/shared/*.lua uses, please keep that in mind. account, since the shared folder inside the inventory will be ignored in your case.

The only changes to make are to add the clothing items in your qb-core/shared/items.lua so that the inventory runs smoothly, otherwise it will give critical errors, add the following items:

['tshirt'] 						 = {['name'] = 'tshirt', 						['label'] = 'T-shirt', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'tshirt.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Tshirt'},
['torso'] 						 = {['name'] = 'torso', 						['label'] = 'Torso', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'torso.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Torso'},
['arms'] 						 = {['name'] = 'arms', 							['label'] = 'Arms', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'arms.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Arms'},
['jeans'] 						 = {['name'] = 'jeans', 						['label'] = 'Jeans', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'jeans.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Jeans'},
['shoes'] 						 = {['name'] = 'shoes', 						['label'] = 'Shoes', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'shoes.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Shoes'},
['mask'] 						 = {['name'] = 'mask', 							['label'] = 'Mask', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'mask.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Mask'},
['ears'] 						 = {['name'] = 'ears', 							['label'] = 'Ears', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'ears.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Ears'},
['glasses'] 					         = {['name'] = 'glasses', 						['label'] = 'Glasses', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'glasses.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Glasses'},
['helmet'] 						 = {['name'] = 'helmet', 						['label'] = 'Helmet', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'helmet.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Helmet'},
['bag'] 						 = {['name'] = 'bag', 							['label'] = 'Bag', 					['weight'] = 0, 		['type'] = 'item', 		['image'] = 'bag.png', 				['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Bag'},

If you want the clothing to work for you, keep the option Config.Clothing = true like this

Config.Clothing = true                         -- Disable clothing system, this will disable the button too
Config.EnableScreenPed = false                 -- Disable the zoom pad and put it on your screen
Config.TakePreviousClothes = true              -- Set whether you want previous clothes to go to your inventory or be removed

Last updated