Qadr_Docs
  • qadr_identity
    • Installation
      • Reboot 2023
      • Old RedemRP
    • Purchasable ambients For Reboot Version
      • Blackwater Saloon
      • Valentine Saloon
      • Valentine Train Station
      • Saint Denis Bazaar
      • Saint Denis Prison
      • Saint Denis Trolley - Soon
  • qadr_fishing
  • qadr_panel
  • qadr_train
    • For Reboot 2023
  • Qadr_Map
  • qadr_ui
    • Ledger System
    • ๐Ÿ“’Usable Handheld Catalogue
    • ๐ŸดLegendary Animal Menu
    • ๐Ÿค Player Menu UI
    • โธ๏ธPause Menu UI
    • โš’๏ธCrafting Menu UI
    • ๐Ÿ—บ๏ธUsable Legendary Animal Maps
    • ๐Ÿ—บ๏ธMap Icon
    • โญ•Meters UI
    • ๐ŸƒAbility UI
    • ๐Ÿ‘ฎโ€โ™€๏ธWanted UI
    • ๐Ÿ’€Death Screen
    • ๐Ÿ“ƒEmote UI / Radial Menu
    • ๐Ÿ›’Shop Info UI
    • ๐ŸƒCard Game UI
    • ๐Ÿค Bounty Poster
    • ๐Ÿ›‚Honor UI
    • ๐Ÿ—’๏ธChallenge Notification Disable
    • ๐ŸŽ–๏ธMini Leader Board
    • ๐Ÿ“‹Board Notify
    • โš”๏ธScore UI
    • ๐Ÿ‘ŠPunch Bar
    • ๐Ÿ”„Count Down
    • ๐ŸšจWanted UI - Outdated
    • ๐ŸŒก๏ธMeters UI - OutDated
    • ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธIcons UI
    • ๐Ÿ—บ๏ธMap UI
      • Mini Map
      • Map Info
      • Hovered Blip Name
    • ๐Ÿ›ก๏ธRank UI
    • ๐ŸŸFish UI
      • ๐ŸŽฃBait UI
    • โ„น๏ธInfo UI
    • ๐Ÿ’ฅMission Text UI
    • ๐Ÿ”ซWeapon Info UI
    • ๐ŸŽHorse Info UI
    • ๐Ÿ“”Message UI
    • ๐Ÿค Prompt Blip For Entities
  • qadr_train_creator - Standalone
Powered by GitBook
On this page
  • Video
  • Images
  • Example
  1. qadr_ui

Player Menu UI

PreviousLegendary Animal MenuNextPause Menu UI

Last updated 11 months ago

Video

Images

Example

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)
๐Ÿค