🤓K-CRAFTING

A very simple resource for crafting items. I hope you enjoy!

!!PLEASE READ!!

Be sure to go through the configs and confirm that the weapons are in your server there are a couple items in the list by default that are not default in the server. Also Be sure that you add the item image provided to your inventory images folder.

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