🗺️Usable Legendary Animal Maps
Usable Functions
-- 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
Example
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)
Last updated