Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How to have a dropdown

How to have a dropdown

Scheduled Pinned Locked Moved Solved ScriptAPI
9 Posts 5 Posters 391 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IvanoVladimirs
    wrote on last edited by
    #1

    How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

    CzechHekC I ENDER1355E 3 Replies Last reply
    0
    • I Offline
      I Offline
      i forgor
      replied to IvanoVladimirs on last edited by
      #3

      @ivanovladimirs
      add a setting.list :

      valueName: Setting.list({
          name: "BypassMode", // name of the value (lol)
          default: "None", // default mode
          values: ["None", "Old", "New"] // list of possible modes
      });
      
      I 1 Reply Last reply
      0
      • CzechHekC Offline
        CzechHekC Offline
        CzechHek
        replied to IvanoVladimirs on last edited by
        #2

        @ivanovladimirs by looking at src of scripts
        by looking at documentation https://liquidbounce.net/docs/ScriptAPI/Global Classes

        1 Reply Last reply
        0
        • I Offline
          I Offline
          i forgor
          replied to IvanoVladimirs on last edited by
          #3

          @ivanovladimirs
          add a setting.list :

          valueName: Setting.list({
              name: "BypassMode", // name of the value (lol)
              default: "None", // default mode
              values: ["None", "Old", "New"] // list of possible modes
          });
          
          I 1 Reply Last reply
          0
          • ENDER1355E Offline
            ENDER1355E Offline
            ENDER1355
            replied to IvanoVladimirs on last edited by
            #4

            @ivanovladimirs sup bro, its me ENDER1355 from the discord

            1 Reply Last reply
            0
            • I Offline
              I Offline
              IvanoVladimirs
              replied to i forgor on last edited by
              #5

              @i-forgor
              I have my code

              settings: {
                      PhaseType: Setting.list({
              			name: "Type",
              			default: "Vertical",
              			values: ["Vertical", "Horizontal"]
              		});
              	}
              

              But for some reason when I do

              module.settings.PhaseType.get()
              

              that doesn't work. How would I fix that?

              exit scammedE 1 Reply Last reply
              1
              • exit scammedE Offline
                exit scammedE Offline
                exit scammed
                replied to IvanoVladimirs on last edited by
                #6

                @ivanovladimirs

                settings: {
                        PhaseType: Setting.list({
                			name: "Type",
                			default: "Vertical",
                			values: ["Vertical", "Horizontal"]
                		});
                                  ^ don't use this, use "," instead if you have more settings
                	}
                
                I 2 Replies Last reply
                0
                • I Offline
                  I Offline
                  IvanoVladimirs
                  replied to exit scammed on last edited by
                  #7

                  @0x64 yes ik this script that I'm making will only have 1 setting

                  1 Reply Last reply
                  1
                  • I Offline
                    I Offline
                    IvanoVladimirs
                    replied to exit scammed on last edited by
                    #8

                    @0x64 actually I removed the ";" and it works now lmao

                    I 1 Reply Last reply
                    1
                    • I Offline
                      I Offline
                      i forgor
                      replied to IvanoVladimirs on last edited by
                      #9

                      @ivanovladimirs sorry im used to use variables instead of putting them on the list

                      1 Reply Last reply
                      0

                      About
                      • Terms of Service
                      • Privacy Policy
                      • Status
                      • Contact Us
                      Downloads
                      • Releases
                      • Source code
                      • License
                      Docs
                      • Tutorials
                      • CustomHUD
                      • AutoSettings
                      • ScriptAPI
                      Community
                      • Forum
                      • Guilded
                      • YouTube
                      • Twitter
                      • D.Tube
                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups