Skip to main content
The Menu and Input systems provide various UI components for gathering player input, displaying menus, and showing information overlays. Includes input forms, list menus, the F1 interaction menu, confirmation dialogs, info overlays, and action text.

Overview

Access these components via COMPONENTS (client-side only).

Input Forms

Text, number, and multiline inputs

List Menus

Selectable menus with submenus

Interaction Menu

F1 menu system with custom items

Dialogs

Confirmation and info overlays
Client-Side Only: All menu components are client-side and handle NUI focus automatically.

Input Forms

The Input system displays forms for collecting user input with various field types.

Input:Show

Display an input form with multiple fields. Parameters: Input Field Definition: Example:

Input:Close

Close the input form. Parameters: Example:

List Menus

The ListMenu system displays hierarchical menus with selectable items and submenus.

ListMenu:Show

Display a list menu. Parameters: Menu Item Definition: Example:

ListMenu:Close

Close the list menu. Parameters: Example:

Interaction Menu

The Interaction system manages the F1 menu (main interaction menu) with custom menu items.

Interaction:Show

Display the interaction menu. Parameters: Example:
Notes:
  • Usually triggered by F1 key
  • Automatically sets NUI focus
  • Shows only menu items that pass shouldShow checks

Interaction:Hide

Hide the interaction menu. Parameters: Example:

Interaction:RegisterMenu

Register a custom menu item in the F1 interaction menu. Parameters: Example:

Interaction:ShowMenu

Display a submenu in the interaction menu. Parameters: Submenu Item Definition: Example:

Interaction:Back

Go back to the previous menu level. Parameters: Example:

Confirmation Dialogs

The Confirm system displays yes/no confirmation dialogs.

Confirm:Show

Display a confirmation dialog. Parameters: Example:

Confirm:Close

Close the confirmation dialog. Parameters: Example:

Info Overlays

The InfoOverlay system displays informational overlays on screen.

InfoOverlay:Show

Display an info overlay. Parameters: Example:

InfoOverlay:Close

Close the info overlay. Parameters: Example:

InfoOverlay:IsOpen

Check if an info overlay is currently open. Returns: Example:

Action Text

The Action system displays action text on screen with keybind formatting.

Action:Show

Display action text. Parameters: Keybind Formatting: Use {keybind}KEY{/keybind} tags to display formatted keybinds. Example:

Action:Hide

Hide the action text. Parameters: Example:

Complete Examples

ATM System

Vehicle Rental System

Crafting System

Tutorial System

Admin Menu


Best Practices

Input Validation

Cleanup


Next Steps

Progress Bars

Timed action progress bars

Notifications

Toast notification system

HUD Exports

Main HUD controls

Status System

Hunger, thirst, stress
Keybind Formatting: In Action text and InfoOverlay descriptions, use {keybind}KEY{/keybind} tags. The system automatically converts these to styled keybind displays.
NUI Focus: Input forms, list menus, confirmation dialogs, and the interaction menu automatically handle NUI focus. Don’t manually call SetNuiFocus when using these components.