🧾Adding tables
Adding more crafting tables is easy !
To start adding crafting tables you need to open shared/craftingbenches.lua.
{
coords = vec4(0, 0, 0, 0),
model = `gr_prop_gr_bench_04b`,
shared = false,
near = {
enabled = false,
maxDistance = 5.0,
},
blip = {
label = 'Crafting table',
id = 566,
colour = 31,
scale = 0.8
},
job = {
police = 1
},
recipes = {
{
level = 0,
title = 'Water',
description = 'Repairing is easy',
requiredItems = {
{name = 'burger', count = 1}
},
giveItem = {name = 'water', count = 1},
time = 50,
giveXp = 100
},
}
},Copy the first entry and edit it as you like it. If the value has ? then it is optional
coords:
vector4model?:
stringshared:
boolIf set to true then all the players can check what is being crafted and cancel or get the items that are crafted
near:
tableenabled:
boolmaxDistance:
numberIf enabled is set to true then the player needs to be in the defined distance for the items to craft
blip?:
tablelabel:
stringid:
numbercolour:
numberscale:
number
job?:
tablejobName:
stringminJobGrade:
number
recipes:
tablerecipe:
tablelevel:
numbertitle:
stringdescription:
stringrequiredItems:
tablename:
stringcount:
number
giveItem:
tablename:
stringcount:
number
time:
numbergiveXp?:
number
Last updated