# Usable Legendary Animal Maps

{% embed url="<https://youtu.be/hQtM12dvfjA>" fullWidth="true" %}

## Usable Functions

{% code fullWidth="true" %}

```lua
-- 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
```

{% endcode %}

<details>

<summary>Usable Animal List</summary>

```lua
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",
}
```

</details>

## Example

{% code fullWidth="true" %}

```lua
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)
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_ui/usable-legendary-animal-maps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
