Input

Functions
input(name, options)
Creates and displays an input form with various field types.
Parameters:
name(string, optional): Title of the input form. Defaults to 'Input Menu' if not providedoptions(table): Array of input field configurations, each containing:type(string): Input field type ('text', 'number', 'select', 'checkbox', 'textarea')title(string): Label text for the input fieldplaceholder(string/number, optional): Placeholder text or default valuerequired(boolean, optional): Whether the field is requireddescription(string, optional): Additional description textmin(number, optional): Minimum value for number inputsmax(number, optional): Maximum value for number inputsoptions(table, optional): Options array for select inputs withlabelandvalueproperties
Returns:
result(table): Form data with field values, ornilif cancelled
Exports:
Standard Export:
exports['ps-lib']:input(name, options)PS-UI Export (Legacy Support):
exports['ps-ui']:input(name, options)
Input Field Types
Text Input
Number Input
Select Dropdown
Checkbox
Textarea
Usage Examples
Basic User Registration Form
Last updated