Client
Inputs (client). Client-only input dialogs (ox_lib or lation_ui). No server implementation.
Inputs (client)
Client-only input dialogs (ox_lib or lation_ui). No server implementation.
inputdialog(heading, rows, options?)
inputdialog(heading, rows, options)| Param | Type | Description |
|---|---|---|
heading | string | Dialog title |
rows | string[] | InputDialogRowProps[] | Simple labels or ox_lib row definitions |
options | InputDialogOptionsProps? | Dialog options ({ allowCancel?: boolean }). Passed through to ox_lib / lation. |
| Returns | string[] | number[] | boolean[] | nil (nil if cancelled) |
Usage Example
local values = bridge.inputs.inputdialog('Rename hive', {
{ type = 'input', label = 'Name', placeholder = 'Hive #1', required = true },
{ type = 'number', label = 'Capacity', default = 10, min = 1, max = 50 },
})
if not values then return end
local name, capacity = values[1], values[2]Simple string rows:
local result = bridge.inputs.inputdialog('Note', { 'Enter a note' })
if result then print(result[1]) endcloseinput() (optional)
bridge.inputs.closeinput()| Provider | lation_ui only |
| Description | Closes the active input dialog |
Types
Dialog rows use ox_lib InputDialogRowProps (type, label, min, max, options, etc.). See ox_lib input dialog.
inputdialog returns string[] | number[] | boolean[] | nil when cancelled.