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
  • Example
  1. qadr_ui

Mini Leader Board

PreviousChallenge Notification DisableNextBoard Notify

Last updated 2 years ago

Video

Example

RegisterCommand("createMiniList",function()
    local data = {
        [1] = {
            name = "Player 1",              -- type must be string
            color = "COLOR_WHITE",          -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        },
        [2] = {
            name = "Player 2",              -- type must be string
            color = "COLOR_WHITE",          -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        },
        [3] = {
            name = "Player 3",              -- type must be string
            color = "COLOR_WHITE",          -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        },
        [4] = {
            name = "Player 4",              -- type must be string
            color = "COLOR_WHITE",          -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        }
    }
    local leaderboard = miniLeaderBoard(data)
    Wait(2000)
    local uData = {
        [1] = {
            name = "Player 1",              -- type must be string
            color = "COLOR_Blue",           -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        }
    }
    leaderboard:update(uData)
    Wait(2000)
    local uData = {
        [2] = {
            name = "Player 2 change name",  -- type must be string
            color = "COLOR_Red",            -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        },        
        [1] = {
            name = "Player 1 change name",  -- type must be string
            color = "COLOR_Red",            -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        }
    }
    leaderboard:update(uData)
    Wait(2000)
    local uData = {
        [3] = {
            name = "Player 3 change name",  -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        },        
        [4] = {
            name = "Player 4 change name",  -- type must be string
            color = "COLOR_Black",          -- type must be string
            score = math.random( 0,250 ),   -- type must be string
        }
    } 
    leaderboard:update(uData)
    Wait(2000) 
    leaderboard:clear()
end)
🎖️