Skip to content

Instantly share code, notes, and snippets.

@Flexiboi
Created January 28, 2023 23:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Config = {}
Config.inventory = 'qb-inventory/html/images/' --Path of your inventory images
Config.waitcardeletetime = 2 --Time before it gets deleted when a car is nearby
Config.benches = {
['workbench1'] = {
benchitem = 'workbench1', --itemname of the item in items.lua
model = 'bkr_prop_weed_table_01b',--Model of the bench
text3dYoffset = 0.5,--If the 3d text is inside the bench add some hight to display it nicer
benchrepairtime = 10, -- Seconds to repair
benchbreakchance = 100, -- Chance of the bench to break
benchbreakpercent = 100, -- How much the bench health goes down
repaircost = { -- Amount times benchlevel = repairkost (for example level7 bench times 1 iron)
[1] = {
item = "iron",--Itemname
amount = 1,--Amount needed
},
[2] = {
item = "steel",--Itemname
amount = 1,--Amount needed
},
},
crafting = {
[1] = {
label = 'Default craftingbench',--label in craftbench
itemname = 'workbench2',--name of what we craft
itemtype = 'bench',--Can be item or bench
materials = {
[1] = {
item = "iron",--Itemname
amount = 1,--Amount needed
},
[2] = {
item = "steel",--Itemname
amount = 1,--Amount needed
},
},
crafttime = 1, --Time to craft in seconds
minbenchlevel = 0, --min benchlevel to craft this
gainxp = 1, --level it gains per craft
},
}
},
['workbench2'] = {
benchitem = 'workbench2',
model = 'prop_rub_table_02',
text3dYoffset = 0.0,
benchrepairtime = 10,
benchbreakchance = 50,
benchbreakpercent = math.random(1, 8),
repaircost = {
[1] = {
item = "iron",
amount = 1,
},
[2] = {
item = "steel",
amount = 1,
},
},
crafting = {
[1] = {
label = 'Radio',
itemname = 'radio',
itemtype = 'item',
materials = {
[1] = {
item = "iron",
amount = 1,
},
[2] = {
item = "steel",
amount = 1,
},
},
crafttime = 1,
minbenchlevel = 0,
gainxp = 1,
},
[2] = {
label = 'advancedlockpick',
itemname = 'advancedlockpick',
itemtype = 'item',
materials = {
[1] = {
item = "iron",
amount = 1,
},
[2] = {
item = "steel",
amount = 1,
},
},
crafttime = 1,
minbenchlevel = 5,
gainxp = 2,
}
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment