Legendary Animal Menu
Last updated
Last updated
local mapList = {
"BAYOU_NWA",
"BIG_VALLEY",
"CHOLLA_SPRINGS",
"CUMBERLAND_FOREST",
"GAPTOOTH_RIDGE",
"GREAT_PLAINS",
"GRIZZLIES",
"HENNIGANS_STEAD",
"HEARTLANDS",
"RIO_BRAVO",
"ROANOKE_RIDGE",
"SCARLETT_MEADOWS",
"TALL_TREES",
}
RegisterCommand("legendaryAnimalMenu",function(src,args,raw)
local mapList = {
"BAYOU_NWA",
"BIG_VALLEY",
"CHOLLA_SPRINGS",
"CUMBERLAND_FOREST",
"GAPTOOTH_RIDGE",
"GREAT_PLAINS",
"GRIZZLIES",
"HENNIGANS_STEAD",
"HEARTLANDS",
"RIO_BRAVO",
"ROANOKE_RIDGE",
"SCARLETT_MEADOWS",
"TALL_TREES",
}
local menuData = {
menuTitle = "Menu Title",
footer = "Menu Footer",
footerColor = `COLOR_ORANGE`,
menuItems = {
{
title = "Item Tıtle - 1",
desc = "Item Desc - 1",
titleColor = `COLOR_YELLOWSTRONG`,
descColor = `COLOR_GREY`,
iconColor = `COLOR_ORANGE`,
mainImgTextureDic = "TOASTS_MP_GENERIC",
mainTexture = `mp_roles_naturalist`,
overlayTickVisible = false,
overlayTimeVisible = true,
enable = true,
visible = true,
footerColor = `COLOR_GREEN`,
location = GetHashKey(mapList[math.random(#mapList)]),
onSelected = function()
print("Selected 1")
end,
onFocused = function()
print("Focused 1")
end
},
{
title = "Item Tıtle - 2",
desc = "Item Desc - 2",
titleColor = `COLOR_YELLOWSTRONG`,
descColor = `COLOR_GREY`,
iconColor = `COLOR_ORANGE`,
mainImgTextureDic = "TOASTS_MP_GENERIC",
mainTexture = `mp_roles_naturalist`,
overlayTickVisible = false,
overlayTimeVisible = true,
enable = false,
visible = true,
footer = "Item 2 Footer",
onSelected = function()
print("Selected 2")
end,
onFocused = function()
print("Focused 2")
end
},
{
title = "Item Tıtle - 3",
desc = "Item Desc - 3",
titleColor = `COLOR_YELLOWSTRONG`,
descColor = `COLOR_GREY`,
iconColor = `COLOR_ORANGE`,
mainImgTextureDic = "TOASTS_MP_GENERIC",
mainTexture = `mp_roles_naturalist`,
overlayTickVisible = false,
overlayTimeVisible = true,
enable = true,
visible = true,
footerColor = `COLOR_GREEN`,
location = GetHashKey(mapList[math.random(#mapList)]),
onSelected = function()
print("Selected 3")
end,
onFocused = function()
print("Focused 3")
end
},
},
onClosed = function()
print("ClosedCallBack")
end
}
exports["qadr_ui"]:legendaryAnimalMenu(menuData)
end)