Input Client
A library to manage the input box
JO Functions
jo.input.loadNUI()
A function to load the NUI.
Syntax
lua
jo.input.loadNUI()
Example
lua
local input = jo.input.loadNUI()
jo.input.native()
A function to open the native input
Syntax
lua
jo.input.native(label, placeholder, maxStringLength)
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 Optional
Maximum String length
Return Value
Type : string
Return the text from the input
Example
lua
local input = jo.input.native('The label: ', 'the placeholder')
print(input)
jo.input.nui()
A function to open the nui input

Syntax
lua
jo.input.nui(options, cb)
Parameters
options
: table
Options of the input
options.rows
: table - The list of rows content
cb
: function Optional
The return function. If missing, the function is syncrhonous
Rows entry Properties
- title
- description
- text
- label
- number
- date
- action