From d596208983391789bd60d80ee7c906863dde0216 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 2 May 2022 20:12:00 +0200 Subject: [PATCH] Update input docs with select example --- docs/ox_lib/Client/Interface/input.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/ox_lib/Client/Interface/input.md b/docs/ox_lib/Client/Interface/input.md index a3aa9920..b88dc763 100644 --- a/docs/ox_lib/Client/Interface/input.md +++ b/docs/ox_lib/Client/Interface/input.md @@ -55,13 +55,18 @@ end ```lua local input = lib.inputDialog('Police locker', { - { type = "input", label = "Locker number" }, - { type = "checkbox", label = "Some checkbox" }, - { type = "input", label = "Locker PIN" }, - { type = "checkbox", label = "Some other checkbox" }, + { type = "input", label = "Locker number" }, + { type = "checkbox", label = "Some checkbox" }, + { type = "input", label = "Locker PIN" }, + { type = "checkbox", label = "Some other checkbox" }, + { type = 'select', label = 'Value select', options = { + { value = 'option1', label = 'Option 1' }, + { value = 'option2', label = 'Option 2' }, + { value = 'option3', label = 'Option 3'}, + }} }) print(json.encode(input, {indent=true})) ``` -![Example image](https://i.imgur.com/2NM6yDQ.png) +![Example image](https://i.imgur.com/BE9Mo7Z.png) ![Select example](https://i.imgur.com/qzDWa7T.png)