Script API - v1.19.70
    Preparing search index...

    Used to create a fully customizable pop-up form for a player.

    Index

    Constructors

    Methods

    • Beta

      Parameters

      • label: string
      • options: string[]
      • OptionaldefaultValueIndex: number

      Returns ModalFormData

      Adds a dropdown with choices to the form.

    • Beta

      Parameters

      • player: Player

        Player to show this dialog to.

      Returns Promise<ModalFormResponse>

      Creates and shows this modal popup form. Returns asynchronously when the player confirms or cancels the dialog.

      This function can throw errors.

    • Beta

      Parameters

      • label: string
      • minimumValue: number
      • maximumValue: number
      • valueStep: number
      • OptionaldefaultValue: number

      Returns ModalFormData

      Adds a numeric slider to the form.

    • Beta

      Parameters

      • label: string
      • placeholderText: string
      • OptionaldefaultValue: string

      Returns ModalFormData

      Adds a textbox to the form.

    • Beta

      Parameters

      • titleText: string

      Returns ModalFormData

      This builder method sets the title for the modal dialog.

    • Beta

      Parameters

      • label: string
      • OptionaldefaultValue: boolean

      Returns ModalFormData

      Adds a toggle checkbox button to the form.