From the reference libraryRedM

autodoc_client_functions

jo_libs/modules/input/autodoc/autodoc_client_functions.md

autodoc_client_functions

JO Functions > jo.input.loadNUI() > Syntax

jo.input.loadNUI()

JO Functions > jo.input.loadNUI() > Example

local input = jo.input.loadNUI()


JO Functions > jo.input.native()

A function to open the native input <br>

JO Functions > jo.input.native() > Syntax

jo.input.native(label, placeholder, maxStringLength)

JO Functions > jo.input.native() > Parameters

label : string

The text above the typing field in the black square

placeholder : string

An Example Text, what it should say in the typing field

maxStringLength : integer <BadgeOptional />

Maximum String length

JO Functions > jo.input.native() > Return Value

Type : string

Return the text from the input


JO Functions > jo.input.nui() > Syntax

jo.input.nui(options, cb)

JO Functions > jo.input.nui() > Parameters

options : table

Options of the input

options.rows : table - The list of rows content

cb : function <BadgeOptional />

The return function. If missing, the function is syncrhonous

JO Functions > jo.input.nui()

Opens the NUI input panel. <br> Rows use { columns = { ... } }. A row can be placed in the header, content, or footer zone; only content scrolls. <br> Button entries support the success, danger, warning, muted, and flat classes, an optional icon URL, and the shared class, style, and width properties. <br>

JO Functions > jo.input.nui() > Parameters

options : table

Options of the input.

options.rows : table - List of row objects. Each row contains a columns array.

options.rows.columns : table - Entries rendered in each row.

options.rows.position : string - Panel zone: header, content, or footer. Defaults to content; only content scrolls. <BadgeOptional />

options.lang : table - Translation table. Only string keys prefixed with inputNui are sent to the NUI. <BadgeOptional />

cb : function <BadgeOptional />

Called with the result. When omitted, the function waits synchronously and returns the result.

JO Functions > jo.input.nui() > Return Value

Type : table|false|nil

Result when called synchronously, false on cancellation, or nil when a callback is provided.

Back to documentation