🛒Shop Info UI

You can create item info UI and easily update it.

Video

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

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)

Last updated