๐งพ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:
vector4
model?:
string
shared:
bool
If set to true then all the players can check what is being crafted and cancel or get the items that are crafted
near:
table
enabled:
bool
maxDistance:
number
If enabled is set to true then the player needs to be in the defined distance for the items to craft
blip?:
table
label:
string
id:
number
colour:
number
scale:
number
job?:
table
jobName:
string
minJobGrade:
number
recipes:
table
recipe:
table
level:
number
title:
string
description:
string
requiredItems:
table
name:
string
count:
number
giveItem:
table
name:
string
count:
number
time:
number
giveXp?:
number
Last updated