Inputs

Client-only input dialogs (ox_lib or lation_ui).

  • Clientinputdialog / closeinput
  • Server — not implemented
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]