# Shop Info UI

### Video

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

### Variables

```
itemLabel               -- Must Be String
isVisible               -- Must Be Boolean
itemDescription         -- Must Be String
purchaseLabel           -- Must Be String
purchasePrice           -- Must Be Int
tokenPrice              -- Must Be Int
modifiedPriceVisible    -- Must Be Boolean
purchaseModifiedPrice   -- Must Be Int
isGoldPrice             -- Must Be Boolean
modifiedPriceGold       -- Must Be Int
ammoVisible             -- Must Be Boolean
ammoCurrent             -- Must Be Int
ammoMax                 -- Must Be Int
ammoTextureDictionary   -- Must Be String, Also you can use all texture not only ammo
ammoTexture             -- Must Be String, Also you can use all texture not only ammo
mailVisible             -- Must Be Boolean
mailCurrent             -- Must Be Int
```

### Example

```lua
RegisterCommand("shopInfo",function()
    local info = exports["qadr_ui"]:shopItemInfo({
        itemLabel = "itemLabel",
        isVisible = true,
        itemDescription = "itemDesc",
        purchaseLabel = "pLabel",
        purchasePrice = 100,
        tokenPrice = 0,
        modifiedPriceVisible = true,
        purchaseModifiedPrice = 1,
        isGoldPrice = false,
        modifiedPriceGold = 0,
        ammoVisible = true,
        ammoCurrent = 1,
        ammoMax = 5,
        ammoTextureDictionary = "ammo_types",
        ammoTexture = "arrow_type_fire",
        mailVisible = false,
        mailCurrent = 2,
    })
    Wait(2000)
    info:update({        
        ammoTextureDictionary = "mp_hub_coupons",
        ammoTexture = "coupon_offer_advanced_camera_discount_30_percent",
    })
    Wait(2000)
    info:update({        
        itemLabel = "Updated title",
        isVisible = true,
        itemDescription = "Updated itemDesc",
        purchaseLabel = "Updated pLabel",
        purchasePrice = 3,
        tokenPrice = 0,
        modifiedPriceVisible = false,
        purchaseModifiedPrice = 100,
        isGoldPrice = true,
        modifiedPriceGold = 10,
        ammoVisible = false,
        ammoCurrent = 10,
        ammoMax = 50,
        mailVisible = true,
        mailCurrent = 2,
    })
    Wait(5000)
    info:clear()
end)
```


---

# 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/shop-info-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.
