From a0555d9a79cb039cb0c78c395c09d47fed00079f Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 23 Jun 2022 13:48:55 +0200 Subject: [PATCH] add number input type to input docs --- docs/ox_lib/Interface/Client/input.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/ox_lib/Interface/Client/input.md b/docs/ox_lib/Interface/Client/input.md index 0992cfe3..63f89e4e 100644 --- a/docs/ox_lib/Interface/Client/input.md +++ b/docs/ox_lib/Interface/Client/input.md @@ -13,7 +13,7 @@ by setting input fields. ```lua -- heading: string -- rows: strings array or table - -- type: "input" or "checkbox" or "select" + -- type: "input" or "number" or "checkbox" or "select" -- label: string -- options: table array (optional - used ONLY with "select" type) -- value: string @@ -32,9 +32,8 @@ sent to the dialog, so if we want data from the first field that would be index `1`, if we want data from the third field, that would be index `3`, etc... -The input rows will always return a string, if you want a row to be of -number data type, you can use the `tonumber` function to convert it to -a number instead. +The standard input rows will always return a string, if you want a row to be of +number data type, you can use set the `type` to `number`. If a user left an input field empty it will return `nil`.