NoneM
Tebex
  • Resources
    • no-base
      • Supported Resources
      • Configuration
        • Player Management
        • Inventory
        • Interact (Target)
        • Indicators
          • Notification
          • Indicators
        • UI
    • no-alerts
      • Exports & Events
      • Notification Usage
      • Indicator Usage
    • no-chains
      • Configuration
      • Exports & Events
    • no-contextmenu
      • Exports
      • Contextmenu Usage
      • Input Menu Usage
    • no-elevators
      • Configuration
        • Elevator Creator
        • Scene Creator
        • Floor Creator
        • Door Selector
        • Icons
      • Restrictions
        • Elevator Restriction
        • Floor Restriction
    • no-gameplaycam
      • Configuration
      • Exports & Events
    • no-housing
      • Configuration
        • Buildings
          • Adding IPL Building
          • Adding Shell Building
          • Adding Building Interaction
        • Real Estate
        • Commands
        • Furniture Interactions
        • Garage
      • House Editor
        • Creating Houses
        • Editing & Removing Existing Houses
      • Furniture Editor
        • Editing Furnitures
        • Editing Furniture Categories
      • Access Sharing
      • Exports & Events
    • no-mop
      • Configuration
        • Client
        • How to disable pollution for interiors?
        • Use with commands
      • Exports & Events
    • no-newspaper
      • Configuration
        • Registering Papers
      • Exports & Events
    • no-payphone
      • Configuration
      • Integration
        • VOIP Integration
        • Phone Integration
    • no-polaroid
      • Configuration
      • Exports & Events
    • no-rappel
      • Configuration
      • Exports & Events
    • no-spy
      • Configuration
        • Client
        • Commands
      • Exports & Events
    • no-torture
      • Configuration
      • Exports & Events
    • no-trains
      • Configuration
      • Exports & Events
    • no-vehicles
      • Configuration
        • Anchor
        • Cruise
        • Indicator
        • Roll
        • Seat Belt
        • Siren Lights
        • Siren Sounds
      • Exports & Events
Powered by GitBook
On this page
  • Types
  • Input Types
  • Choice
  • Row Data
  • Input Menu Data
  • Examples
  • Creating Input Menu
  1. Resources
  2. no-contextmenu

Input Menu Usage

Types


Input Types

  • text

  • number

  • select

  • radio

  • checkbox

  • slider

Choice

Field
Type
Required

label

string

value

any

Row Data

Field
Type
Required

type

label

string

placeholder

string

leftIcon

string

rightIcon

string

value

any

choices

Input Menu Data

Field
Type
Required

header

string

leftIcon

string

rightIcon

string

rows

Examples


Creating Input Menu

local inputMenuData = {
    leftIcon = "envelope",
    header = "Mail",
    rows = {
        {
            label = "To",
            placeholder = "5XX-XXXX",
            type = "text"
        },
        {
            label = "Content"
        }
    }
}

local inputMenu = exports["no-contextmenu"]:CreateInputMenu(inputMenuData)

-- menu closed
if not inputMenu then return end

local to, content = table.unpack(inputMenu)
PreviousContextmenu UsageNextno-elevators

Last updated 1 year ago

[]

Input Types
Choice
Row Data