Crafting Menu UI
You can create native crafting menu ui
Last updated
You can create native crafting menu ui
Last updated
RegisterCommand("crafting",function()
local data = {
header = "Title",
tipText = "Footer",
mainDescription = "Main Description", -- if you set this value, you can't use ingredients
Ingredients = true, -- if you set mainDescription you cant work with ingredients
ShowRpgPlayer = true,
showLongDescription = false,
craftItems = {
{
enabled = true,
overpower = false,
texture = "reinforced_survivalist_bandolier",
textureDictionary = "inventory_items",
count = nil,
text = "First Item",
health = 3, -- [-10 - 11]
healthDurationCategory = nil, -- [0 - 3]
stamina = nil, -- [-8 - 8 12 = overpowered]
staminaDurationCategory = nil, -- [0 - 3]
deadeye = nil, -- [-10 - 11]
deadeyeDurationCategory = nil, -- [0 - 3]
healthCore = 7, -- [-8 - 8 12 = overpowered]
healthCoreDurationCategory = nil, -- [0 - 3]
staminaCore = 8, -- [-10 - 11]
staminaCoreDurationCategory = nil, -- [0 - 3]
deadeyeCore = nil, -- [-8 - 8 12 = overpowered]
deadeyeCoreDurationCategory = nil, -- [0 - 3]
staminaHorse = nil, -- [-10 - 11]
staminaHorseDurationCategory = nil, -- [0 - 3]
healthHorse = nil, -- [-8 - 8 12 = overpowered]
healthHorseDurationCategory = nil, -- [0 - 3]
staminaCoreHorse = nil, -- [-10 - 11]
staminaCoreHorseDurationCategory = nil, -- [0 - 3]
healthCoreHorse = nil, -- [-8 - 8 12 = overpowered]
healthCoreHorseDurationCategory = nil, -- [0 - 3]
recipe = { -- [max 3 item]
{
itemname = "First Item First Recipe Item",
visible = true,
texture = "awards_set_r_003",
textureDictionary = "toast_awards_set_r",
count = 1,
enabled = true,
inUse = true,
},
{
itemname = "First Item Second Recipe Item",
visible = true,
texture = "awards_set_r_002",
textureDictionary = "toast_awards_set_r",
count = 2,
enabled = true,
inUse = true,
},
{
itemname = "First Item Third Recipe Item",
visible = true,
texture = "awards_set_r_004",
textureDictionary = "toast_awards_set_r",
count = 3,
enabled = true,
inUse = true,
},
},
callbackfunction = function(text)
print(text.." callback")
end
},
}
}
exports["qadr_ui"]:craftingMenuCreator(data)
end)