#What did I do wrong?

1 messages · Page 1 of 1 (latest)

sinful sand
#

Here's what happened, I created some crafting that is supposed to be for mechanics only, but I can craft everywhere I go.

['duct_tape'] = {
        category = "Jármű Alkatrészek & Tuning",
        label = 'Szigetelőszalag',
        jobType = { ['mechanic'] = 1 },
        job = 'mechanic', -- Hozzáadva
        skillName = 'crafting',
        toItems = { duct_tape = 1 },
        materials = { metalscrap = 1, iron = 1, steel = 1, copper = 1, rubber = 3 },
        craftingTime = 7000,
        craftingSkill = 0,
        customSkillGain = 1,
    },
    ['performance_part'] = {
        category = "Jármű Alkatrészek & Tuning",
        label = 'Teljesítmény Növelő Alkatrész',
        jobType = { ['mechanic'] = 1 },
        job = 'mechanic', -- Hozzáadva
        skillName = 'crafting',
        toItems = { performance_part = 1 },
        materials = { metalscrap = 18, iron = 15, steel = 12, copper = 8, rubber = 5 },
        craftingTime = 35000,
        craftingSkill = 0,
        customSkillGain = 7,
    },
gentle narwhal
#

You didn't put it on the mechanic table

#

if that's what youre trying to do

sinful sand
# gentle narwhal You didn't put it on the mechanic table

Im added under this line:
Config.Recipes = {
['r488sound'] = {
category = "Jármű Alkatrészek & Tuning",
label = 'R488 Engine 2.5L',
jobType = { ['mechanic'] = 1 },
job = 'mechanic',
skillName = 'crafting',
toItems = { r488sound = 1 },
materials = { metalscrap = 40, iron = 30, steel = 20, copper = 15, rubber = 15 },
craftingTime = 60000,
craftingSkill = 25,
customSkillGain = 10,
},

gentle narwhal
sinful sand
#

Love u mate ❤️

sinful sand
# gentle narwhal

Im added this line but now i cant see the items 😮
['performance_part'] = {
category = "Jármű Alkatrészek & Tuning",
label = 'Teljesítmény Növelő Alkatrész',
jobType = { ['mechanic'] = 1 },
job = 'mechanic',
skillName = 'crafting',
toItems = { performance_part = 1 },
materials = { metalscrap = 18, iron = 15, steel = 12, copper = 8, rubber = 5 },
craftingTime = 35000,
craftingSkill = 0,
customSkillGain = 7,
tables = {'mechanic'},
},

gentle narwhal
#

Are you using an actual mechanic crafting table, as a mechanic?

#

Not sure if you need both jobType and job also

#

depends on your core

sinful sand
#

Im using qbcore and this is the "Crafting" table

gentle narwhal
#

yeah you set it to use a mechanic table

sinful sand
#

Alright, im try thank you

sinful sand
#

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' }
}
},

gentle narwhal
#

I don't even know what you're trying to do?

The best way to debug is to remove as much options as possible and then add them one by one to achieve what you want

#

I can't read minds

#

Check the pinned post for instructions on how to debug and report issues

sinful sand
#

I think this is not script error just im ugly..

#

I created a weapon crafting but i dont see in the table

sinful sand
#

@gentle narwhal sorry for the ping but i dont know what is the problem now.. 😮

#

I don't quite understand because when I craft an item I get XP for it

gentle narwhal
#

Does it cause any issues? Does your character have any skill in crafting?

sinful sand
gentle narwhal
#

Does it still say that after you gained skill?

sinful sand
#

No lol

#

Now working fine

#

no error

sinful sand
gentle narwhal
#

Check the readme. Instructions on all the table properties.