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
  • Alert
  • How to use:
  1. QB/ESX
  2. lvs-lib

alert

PrevioustextuiNextcontext menu

Last updated 10 months ago

Alert


How to use:

Client-side using exports

Example:

-- show up the alert
exports.lvs_lib:showAlert({
    title = 'Box Title',
    message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. \n Aenean vitae.'
    --time = 10000 -- [optional] The time in milliseconds you want the alert to disappear
})

-- update the title and mesagge on the visible alert
exports.lvs_lib:updateAlert({
    title = 'New Title',
    message = 'Message updated'
})

-- hide the alert
exports.lvs_lib:hideAlert()

Server-side using events

Example:

-- show up the alert
TriggerClientEvent('lvs_lib:client:showAlert', source, {
    title = 'Box Title',
    message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. \n Aenean vitae.'
    --time = 10000 -- [optional] The time in milliseconds you want the alert to disappear
})

-- hide the alert
TriggerClientEvent('lvs_lib:client:hideAlert', source)

⚙️