Hi guys, i’d like to share my config for weapon crafting, if it result useful for scratch, i’m happy.
add this to your config.lua
-- CLIP
["clip"] = {
{item = "bulletshell", quantity = 5 },
{item = "gunpowder", quantity = 5 },
},
-- CULATA
["culata"] = {
{item = "scrapmetal", quantity = 5 },
{item = "rubberband", quantity = 5 }, --DT
{item = "scrapplastic", quantity = 5},
},
-- CAÑON
["barrel"] = {
{item = "scrapmetal", quantity = 30 },
{item = "tape", quantity = 5 }, --DT
{item = "scrapplastic", quantity = 15},
},
-- ARMAZON AK
["body_ak"] = {
{item = "cutted_wood", quantity = 50 },
--{item = "fixtool", quantity = 1, remove = false}, -- fixtool? (Herramientas) equipada sin quitarla
{item = "scrapmetal", quantity = 10 },
{item = "scrapplastic", quantity = 5 },
{item = "tape", quantity = 5},
{item = "tornillo", quantity = 100},
},
-- WEAPON_ASSAULTRIFLE (AK47)
['WEAPON_ASSAULTRIFLE'] = {
{item = "body_ak", quantity = 1 },
{item = "scrapmetal", quantity = 10 },
{item = "scrapplastic", quantity = 5 },
{item = "tape", quantity = 5},
{item = "tornillo", quantity = 60},
{item = "clip", quantity = 2},
{item = "barrel", quantity = 1},
{item = "culata", quantity = 1},
},
Add this to your db
INSERT INTO `items` (name, label, `limit`) VALUES
('clip','Cargador', 10),
('scrapmetal', 'Trozo de Metal', 100),
('scrapplastic', 'Trozo de Plastico', 100),
('rubberband', 'Gomita Elastica', 200),
('bulletshell', 'Casquillo de Bala', 200),
('gunpowder', 'Polvora', 200),
('tape', 'Cinta Multiuso', 50),
('tornillo', 'Tornillo', 250),
('body_ak', 'Cuerpo de AK-47', 5),
('barrel', 'Cañon', 5),
('culata', 'Culata', 5)
;
if you want to add more items, do it.
If you want some idea to WHERE to retrieve those items beside shops or jobs (like cutted_wood from Lumberjack), try esx-ecobottles script and just add there the items you want to pick up from the bins. (Default math.random is 100, i made it to 1000 to get more variety of pickups)
I want this plugin to be multi shop so bad…SO BAD!!!