Again me, what i did wrong?
['WEAPON_M45A1'] = {
category = "Fegyverek",
label = 'M45A1',
skillName = 'gun_crafting',
toItems = {WEAPON_M45A1 = 1 },
materials = { metalscrap = 185, iron = 76, steel = 45, copper = 53, rubber = 10 },
craftingTime = 20000,
craftingSkill = 35,
customSkillGain = 4,
metadata = { registered= false },
blueprint = 'WEAPON_M45A1',
tables = {'guns'},
},
['WEAPON_TEC9'] = {
category = "Fegyverek",
label = 'Tec-9',
skillName = 'gun_crafting',
toItems = {WEAPON_TEC9 = 1 },
materials = { metalscrap = 250, iron = 120, steel = 30, copper = 53, rubber = 16 },
craftingTime = 20000,
craftingSkill = 45,
customSkillGain = 5,
metadata = { registered= false },
blueprint = 'WEAPON_TEC9',
tables = {'guns'},
},
["weapon_appistol"] = {
label = "AP Pistol",
toItems = {
WEAPON_APPISTOL = 1,
},
materials = {
["metalscrap"] = 360,
},
category = 'Fegyverek',
tables = {'guns'},
blueprint = 'Ap Pistol',
craftingSkill= 200,
skillName = 'gun_crafting', -- optional. If set, will override what skill is required. ONLY WORKS WITH CW-REP!!!
metadata = { registered= false } -- If set, will write info/metadata on all items in toItems
},
}
-- Search for more tables here, for example: https://gta-objects.xyz/objects
-- For icons see https://pictogrammers.com/library/mdi/
Config.CraftingTables = {
['basic'] = {
title = "Kraftolás",
animation = { dict = 'anim@amb@business@coc@coc_unpack_cut@', anim = 'fullcut_cycle_v7_cokecutter'},
objects = { 'ex_prop_ex_toolchest_01', 'prop_toolchest_04', 'prop_toolchest_05'},
locations = { vector3(929.00, -1547.26, 30.84), },
skipPlaceObjectOnGroundProperly = true -- Defaults to false, if set to true then object wont be placed onto ground. Useful for placing items on tables etc
},
['mechanic'] = {
title = "Szerelő Kraft",
objects = { 'prop_toolchest_05' },
icon = "car-wrench", -- optional. Defaults to 'wrench'
jobType = { ['mechanic'] = 1 }, -- NOTE: This checks TYPES not name. A new qb thing. It's good. Use it.
locations = { vector3(948.81, -1552.64, 30.59), }, -- BOXZONE: If you add one of these objects (locations = ...) it will spawn boxzones
spawnTable = { { coords = vector4(-803.56, -436.98, 36.64, 207.96), prop = 'ex_prop_ex_toolchest_01' } } -- SPAWNS TABLE: the spawnTable field holds a list of several tables with prop and location. If these are added it will SPAWN a table that's interactable
},
['guns'] = {
title = "Fegyver Kraft",
craftingLevelText = "Fegyver Kraft szinted:",
animation = { dict = 'anim@amb@business@coc@coc_unpack_cut@', anim = 'fullcut_cycle_v7_cokecutter'},
icon = "pistol",
objects = { 'gr_prop_gr_bench_01a' }, -- ← HIBA itt volt: hiányzott a vessző
spawnTable = {
{ coords = vector4(125.49, -1902.15, 13.47, 75), prop = 'gr_prop_gr_bench_02a' }
}
},