Usable Legendary Animal Maps
Last updated
Last updated
-- Main function.
local data = {
openMap = false, -- is you set true, player will open map with animation
}
local legendarymap = exports["qadr_ui"]:legendaryMapCreation(data)
-- You can show/hide all icons
legendarymap.setAllVisibility(true)
-- You can only show/hide the icons in the list.
local data = {
{
animalName = "Tier 2 Bison", -- check usable animal list
visibility = false,
},
{
animalName = "Tier 1 Alligator", -- check usable animal list
visibility = true,
customzone = math.random( 1,28 ) -- min 1 max 28 if you set nil , it will use r* zone
-- All animal has own zone. But you can use customzone
}
}
legendarymap.setAnimalVisibility(data) -- check example for data
local usableAnimalList = {
"Tier 1 Alligator",
"Tier 2 Alligator",
"Tier 1 Bear",
"Tier 2 Bear",
"Tier 1 Beaver",
"Tier 2 Beaver",
"Tier 1 Bison",
"Tier 2 Bison",
"Tier 1 Boar",
"Tier 2 Boar",
"Tier 1 Buck",
"Tier 2 Buck",
"Tier 1 Cougar",
"Tier 2 Cougar",
"Tier 1 Coyote",
"Tier 2 Coyote",
"Tier 1 Elk",
"Tier 2 Elk",
"Tier 1 Fox",
"Tier 2 Fox",
"Tier 1 Moose",
"Tier 2 Moose",
"Tier 1 Panther",
"Tier 2 Panther",
"Tier 1 Ram",
"Tier 2 Ram",
"Tier 1 Wolf",
"Tier 2 Wolf",
}
RegisterCommand("LegendaryAnimalMap",function(src,args,raw)
local data = {
openMap = false, -- is you set true, player will open map with animation
}
local legendarymap = exports["qadr_ui"]:legendaryMapCreation(data)
print("all data created")
Wait(2000)
print("Map opened")
legendarymap.openMap()
Wait(2000)
legendarymap.setAllVisibility(true)
print("all animals set visible true")
Wait(2000)
local data = {
{
animalName = "Tier 2 Bison",
visibility = false,
},
{
animalName = "Tier 1 Alligator",
visibility = true,
customzone = math.random( 1,28 ) -- min 1 max 28 if you set nil , it will use r* zone
}
}
legendarymap.setAnimalVisibility(data)
print("Tier 2 Bison and Tier 1 Alligator animals change visible")
Wait(2000)
local data = {
{
animalName = "Tier 2 Bison",
visibility = true,
},
{
animalName = "Tier 1 Alligator",
visibility = false,
customzone = math.random( 1,28 ) -- min 1 max 28 if you set nil , it will use r* zone
}
}
legendarymap.setAnimalVisibility(data)
print("Tier 2 Bison and Tier 1 Alligator animals change visible")
Wait(2000)
legendarymap.closeMap()
print("Map closed")
Wait(2000)
legendarymap.openMap()
print("Map opened")
Wait(3000)
legendarymap.setAllVisibility(false)
print("all animals set visible false")
Wait(3000)
legendarymap.clear()
print("all data cleared")
end)