Remove internal functions and move external ones

This commit is contained in:
Luke committed 2022-03-26 15:17:51 +01:00
1 parent 82518e769b
commit 49d5315d52
76 files changed
-3

No files matched your search

@@ -0,0 +1,24 @@
Opens a keyboard input dialog.
The `rows` param takes a table of strings where each string entry will represent
a single row.
```lua
-- header: string
-- rows: table
exports.ox_inventory:Keyboard(header, rows)
```
Returns a table of strings where the first index is going to be the first row of the dialog,
the second index the second row and so on.
**Example:**
```lua
local input = exports.ox_inventory:Keyboard('Money transfer', {'Player name', 'Amount'})
if input then
local playerName = input[1]
local amount = tonumber(input[2])
if not playerName or not amount then return end
end
```