Info UI
Last updated
Last updated
RegisterCommand("createInfoUI",function()
local infoData = {
itemLabel = "Title",
itemDescription = "Custom itemDescription", -- This value can not updateable. Only works first time.
isVisible = true,
}
local infoUI = exports["qadr_ui"]:createInfoUI(infoData)
Wait(3000)
infoUI:update({
itemLabel = "Title2",
})
Wait(3000)
infoUI:update({
itemLabel = "Title3",
isVisible = false,
})
Wait(3000)
infoUI:update({
itemLabel = "Title4",
isVisible = true,
})
Wait(3000)
infoUI:clear()
end)