DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί
Modules
β€Ί
ui
β€Ί

Input

Input

lib.inputDialog

Open a form dialog with multiple inputs. Yields until submitted or cancelled.

lua
local values = lib.inputDialog('Create Report', {
    { type = 'input', label = 'Title', required = true },
    { type = 'textarea', label = 'Description' },
    { type = 'number', label = 'Priority', default = 1 },
    { type = 'select', label = 'Category', options = {
        { value = 'bug', label = 'Bug' },
        { value = 'feature', label = 'Feature' },
    }},
})

if values then
    local title, desc, priority, category = table.unpack(values)
end
ParameterTypeRequiredDescription
titlestringyesDialog header
inputstable[]yesArray of input definitions
optionstableno{ allowCancel = true, description, icon, prevContext, prevDialog }

lib.closeInputDialog

Programmatically close the input dialog.

lua
lib.closeInputDialog()

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.