> For the complete documentation index, see [llms.txt](https://abdulkadir-aktas.gitbook.io/qadr_docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_ui/player-menu-ui.md).

# Player Menu UI

## Video

{% embed url="<https://youtu.be/SiTDEDddK7I>" %}

## Images

<figure><img src="/files/GGth9lTxDJlw9r3dtrGr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AIVtNgHZsAHKP525FMlY" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/lPEMducsDfhC5L0XFnsd" alt=""><figcaption></figcaption></figure>

## Example

```lua
RegisterCommand("playerDatas", function()    
    local iconListe = {
        "rpg_cold",
        "rpg_confusion",
        "rpg_dead_eye",
        "rpg_disoriented",
        "rpg_drained",
        "rpg_health",
        "rpg_horse_agitation",
        "rpg_horse_dirty",
        "rpg_horse_health",
        "rpg_horse_stamina",
        "rpg_hot",
        "rpg_overeating",
        "rpg_overweight",
        "rpg_sick",
        "rpg_stamina",
        "rpg_trail",
        "rpg_underweight",
        "rpg_wounded"
    }
    function generateRandomStatValue(min,max) -- example
        return math.random(min,max)+0.001
    end
    function getRandomIcon() -- example
        return iconListe[math.random( 1,#iconListe )]
    end
    local line = {
        isActive = true,
        label = "Label 1 - 1",
        value = "Value 1",
        isEndIconVisible = true,
        endIconTexture = getRandomIcon(),
        endIconTXD = "pausemenu_player",
        endIconColor = `COLOR_WHITE`
    }
    local line2 = {
        isActive = true,
        label = "Label 1 - 2",
        value = "Value 2",
        isEndIconVisible = true,
        endIconTexture = getRandomIcon(),
        endIconTXD = "pausemenu_player",
        endIconColor = `COLOR_BLACK`
    }
    local pageData = {
        label = "Label 1 - 1",
        description = "Description 1 - 1",
        tooltip = "Tooltip 1 - 1",
        textureTxd = "pm_player_mp",
        textureName = "mp_player_general_finances",
        rpgPlayerHealthVisible = true,
        rpgPlayerStaminaVisible = true,
        rpgPlayerDeadeyeVisible = true,
        rpgPlayerProgressionIconVisible = true,
        rpgPlayerProgressionIconTxn = "TOAST_RPG_LEVEL_"..math.random( 1,10 ).."_"..math.random(0,3),
        rpgPlayerProgressionIconTxd = "toast_rpg_level_health",
    }
    local pageData2 = {
        label = "data 2 - 1",
        description = "Description 2 - 1",
        tooltip = "Tooltip 2 - 1",
        textureTxd = "pm_player_mp",
        textureName = "mp_player_player",
        rpgPlayerHealthVisible = true,
        rpgPlayerStaminaVisible = true,
        rpgPlayerDeadeyeVisible = true,
        rpgPlayerProgressionIconVisible = true,
        rpgPlayerProgressionIconTxn = "TOAST_RPG_LEVEL_"..math.random( 1,10 ).."_"..math.random(0,3),
        rpgPlayerProgressionIconTxd = "toast_rpg_level_health",
    }
    local infolist =  {
        text = "Text 1 - 1",
        value = "value ",
        isIconVisible = true,
        iconTexture = getRandomIcon(),
        isActive = true,
        isRowActive = true,
        barVisible = true, -- if you set true, value set disabled
        statValue =  generateRandomStatValue( 0.0,100.0 ), -- min 0.0 max 100.0
        statEquipmentValue = generateRandomStatValue( 0.0,100.0 ), -- mean yellowbar min 0.0 max 100.0
        statCapacityValue = generateRandomStatValue( 0.0,1.0 ), -- min 0.0 max 1.0
        isEndIconVisible = true,
        endIconTexture = "RPG_ARROW_DOWN" or "RPG_ARROW_DOWN",
    }
    local infolist2 =  {
        text = "listItem2 1 - 1",
        value = "value listItem2",
        isIconVisible = true,
        iconTexture = getRandomIcon(),
        isActive = true,
        isRowActive = true,
        barVisible = true, -- if you set true, value set disabled
        statValue =  generateRandomStatValue( 0.0,100.0 ), -- min 0.0 max 100.0
        statEquipmentValue = generateRandomStatValue( 0.0,100.0 ), -- mean yellowbar min 0.0 max 100.0
        statCapacityValue = generateRandomStatValue( 0.0,1.0 ), -- min 0.0 max 1.0
        isEndIconVisible = true,
        endIconTexture = "RPG_ARROW_DOWN" or "RPG_ARROW_DOWN",
    }
    local listItem = {
        label = "label",
        value = "value",
        isActive = true,
        isAccentColorActive = true,
        textureVisible = true,
        textureName = "textureName",
        textureTxd = "textureTxd",
        rank = "2",
        rankVisible = true,
        infoliste =  {infolist},        
        pageData = pageData
    }
    local listItem2 = {
        label = "listItem2",
        value = "value - listItem2",
        isActive = false,
        isAccentColorActive = false,
        textureVisible = true,
        textureName = "mp_player_general_finances",
        textureTxd = "pm_player_mp",
        rank = "2",
        rankVisible = false,
        infoliste =  {infolist2,infolist},
        pageData = pageData2
    }
    local rpgPanel = {
        title = "Title 1",
        textureName = "mp_player_horse_bonding",
        textureTxd = "pm_player_mp",
        rpgPanelTitleIconShow = true,
        rpgPanelTitleIconTex = "itemtype_collectable",
        rpgPanelTitleIconDict = "itemtype_textures",
        rpgPanelfooterText = "Footer 1",
        rpgPanelisWellbeingVisible = true,
        rpgPanelisWellbeingActive = true,
        isWeightVisible = true,
        isWeightActive = true,
        isTemperatureVisible = true,
        isTemperatureActive = true,
        TemperatureTexture = "rpg_cold",
        isToxicityVisible = true,
        isToxicityActive = false,
        lines = {
            line,
            line2,
            line,
            line2,
        },
        list = {
            {
                Title = "title 1 detay",
                items = {
                    listItem,
                    listItem,
                    listItem,
                    listItem2,
                    listItem,
                }
            },
        }
    }
    local horseListItem = {
        Title = "Title",
        items = {
            listItem,
            listItem,
            listItem2,
        }
    }
    local data = {
        playerPage = {
            name = "New Player Name",
            playerTextureDict = "arm_genstore_portrait+hidr",
            playerTexture = "arm_genstore_painting_01_ab",
            rpgpanels = { -- maks 4
                rpgPanel,
                rpgPanel,
                rpgPanel,
                rpgPanel,
            },
        },
        horsePage = {
            name = "Horse Name",
            enabled = true,
            pagetitle = "Default Title",
            label = "label",
            tooltip = "Default tooltip",
            description = "Açıklama",
            txd = "pm_player_mp",
            tx = "mp_player_horse_bonding",
            PlayerHealthVisible = true,
            PlayerStaminaVisible = true,
            PlayerDeadeyeVisible = true,
            PlayerProgressionIconVisible = true,
            PlayerProgressionIconTxn = "TOAST_RPG_LEVEL_"..math.random( 1,10 ).."_"..math.random(0,3),
            PlayerProgressionIconTxd = "toast_rpg_level_health",
            horseTextureDict = "dis_tal_circwagons_tarp+hidr",
            horseTexture = "dis_wagondoc01x_tarp_ab",
            horseDetailList = {
                horseListItem,
                horseListItem,
                horseListItem,
                horseListItem,
            },
        },
    }
    exports["qadr_ui"]:setPlayerUI(data)
end)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/player-menu-ui.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.
