Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
# qb-input
# QBCore Input

NUI input system for QBCore

This is a modified version of **[NH Keyboard](https://forum.cfx.re/t/no-longer-supported-standalone-nerohiro-s-keyboard-dynamic-nui-keyboard-input/2506326)** by **[NeroHiro](https://github.com/nerohiro)**

## Input Types

- Text
- Password
- Number
- Radio
- Checkbox
- Select
- Color

\* All types must be in lowercase

## Input fields

| Name | Input Type | Description | Variable Type | Optional | Default Value |
| ---- | ---------- | ----------- | ------------- | -------- | ------------ |
| text | All | Text displayed as placeholder/title | `string` | ❌ | ... |
| name | All | Variable name in the result (also name of input) | `string` | ❌ | ... |
| type | All | Input type | `string` | ✅ | `"text"` |
| isRequired | All | Whether the input is required to be filled or not | `boolean` | ✅ | `false` |
| default | All | Default input value | `string` | ✅ | `nil` |
| options | Radio, Checkbox & Select | Different values that can be selected by the user | `{value: string, text: string}[]` | ❌ | ... |


## Example

Here is an example commant which will create a basic form and will print out it's inputs:
Expand Down