bastiwesti
Bronze Elite
Hello guys, can anyone tell me how can i add a new crafting table inside the config.
HTML:
Config.Crafting = {
{
coordinates = vector3(-809.4, 190.3, 72.5), -- coordinates of the table
radius = 1, -- radius of the table
maxCraftRadius = 5, -- if you are further it will stop the craft
showBlipRadius = 50,
blip = {blipId = 89, blipColor = 3, blipScale = 0.9, blipText = "Crafting"}, -- to get blips and colors check this: https://wiki.gtanet.work/index.php?title=Blips
tableName = 'Autoteile', -- Title
tableID = 'general1', -- make a different one for every table with NO spaces
crafts = { -- What items are available for crafting and the recipe
{
item = '2jzengine', -- Item id and name of the image
amount = 1,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = false, -- if true = is item | if false = is weapon
time = 6, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'shell_oil', 1, true},
{'stock_oil', 1, true},
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'v8engine', -- Item id and name of the image
amount = 1,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'shell_oil', 1, true},
{'stock_oil', 1, true},
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'turbo_lvl_1', -- Item id and name of the image
amount = 1,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'shell_oil', 1, true},
{'stock_oil', 1, true},
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'stock_oil', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'gold', 12, true}, -- item/amount/if the item should be removed when crafting
{'iron', 6, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'shell_oil', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'gold', 12, true}, -- item/amount/if the item should be removed when crafting
{'iron', 6, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'race_transmition', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'shell_oil', 1, true},
{'stock_oil', 1, true},
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'stock_transmition', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'race_suspension', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'stock_suspension', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'stock_brakes', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'stock_engine', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
{
item = 'race_brakes', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'iron', 100, true},
{'copper', 100, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
},
},
}