LV Soft FiveM
  • LV SOFT
    • 👋Welcome!
    • 🛒Tebex
    • 💬Discord
  • QB/ESX
    • ☮️lvs-loading
      • Installation
      • Configuration
    • 👫lvs-multichar
      • Installation
      • Configuration
      • Adding Scenes
      • Tebex Integration
      • Commands
    • 🗺️lvs-spawnselector
      • Installation
      • Configuration
    • 🥼lvs-clothing
      • Installation
        • QBCore Install
        • ESX Install
      • Configuration
      • Migration
        • qb-clothing
        • esx-skinchanger
        • Illenium-Appareance
      • Blacklisting
      • Events
      • Commands
    • ⚙️lvs-lib
      • black-screen loading
      • notifications
      • progressbar
      • key-interaction
      • textui
      • alert
      • context menu
      • context input
    • 💬lvs-chat
      • Installation
      • Configuration
      • Events & Exports
    • 📱lvs-radio
      • Installation
      • Configuration
      • Events & Exports
    • 🗃️lvs-playerlist
      • Installation
      • Configuration
    • 📹lvs_weazelnews
      • Installation
      • Configuration
    • 🎒lvs-inventory
      • Installation
      • Configuration
      • lvs-inventory
        • exports
      • lvs-shops
        • Configuration
        • Exports
      • lvs-crafting
    • 🪪lvs-idmanager
      • Installation
      • Configuration
      • Exports
  • Standalone
    • 🚘lvs-drift
      • Installation
      • Configuration
      • Commands
    • 🕺lvs-animations
      • Installation
      • Configuration
      • Adding Animations
      • Exports/Events
    • 💥lvs-accident
      • Installation
      • Configuration
    • 🔥lvs-explosion
      • Installation
      • Configuration
    • 🏎️lvs-racing
  • ESX
    • 📅Soon
Powered by GitBook
On this page
  • Key Interaction
  • How to use:
  1. QB/ESX
  2. lvs-lib

key-interaction

TextUI rework

PreviousprogressbarNexttextui

Last updated 10 months ago

Key Interaction is the same as TextUI but reworked to allow multiple keys. TextUI wasn't removed to maintain compatibility with scripts that are already using it. It doesn't affect anything.

Key Interaction


How to use:

Client-side using exports

Example:

-- show up key-interaction
-- exports.lvs_lib:keyInteraction(method, items)
exports.lvs_lib:keyInteraction('show', {
    {key= 'E', text= 'Action #1'},
    {key= 'F', text= 'Action #2'},
})

-- simulate keypress and hide key-interaction
-- exports.lvs_lib:keyInteraction(method, [itemIndex])
exports.lvs_lib:keyInteraction('pressed', 1)

-- hide key-interaction
exports.lvs_lib:keyInteraction('hide')

⚙️