From 943436467e7bee64293c6993b7a3e558328259bf Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 12 Apr 2025 00:18:48 +0100 Subject: [PATCH] add ox checkbox option for input --- shared/input.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shared/input.lua b/shared/input.lua index 84b921a..579cdb5 100644 --- a/shared/input.lua +++ b/shared/input.lua @@ -88,6 +88,19 @@ function createInput(title, opts) } end + if opts[i].type == "checkbox" then + jsonPrint(opts[i]) + for k in pairs(opts[i].options) do + if options[currentNum] then currentNum += 1 end + options[currentNum] = { + type = opts[i].type, + label = opts[i].options[k].text..(opts[i].txt and " - "..opts[i].txt or ""), + name = opts[i].options[k].value, + } + + end + end + if opts[i].type == "color" then options[currentNum] = { type = opts[i].type,