🤓K-CRAFTING
A very simple resource for crafting items. I hope you enjoy!
!!PLEASE READ!!
local locationData = {
label = 'Menu Label', -- title of the crafting menu
repType = 'metadata', -- if this doesnt exist it will create it for you so no need to use preexisting metadata values unless you want to
icon = 'fas-fa-icon', -- font awesome icon https://fontawesome.com/icons
location = {vector4(0.0, 0.0, 0.0, 0.0)}, -- where the menu can be opened
job = {required = {}, restricted = {'job1', 'job2'}}, -- goes by name or type depending on
gang = {required = {}, restricted = {}},-- goes by gang.name
items = {
[1] = {-- please keep the part levels in chronological order
name = 'tosti',-- name of the reward item
xp = {
required = 0, -- amount of xp you need to have to view the item
rewarded = 1 -- amount of xp reward for completing the craft
},
cost = {
[1] = {
price = 140,-- how many items it costs
name = 'metalscrap' -- name of item
}
}
}
}
}
exports['k-crafting']:addLocation(locationData)Last updated