From 1a0707efac85b0a864fa02896a11dde912800784 Mon Sep 17 00:00:00 2001 From: gononono64 <96976330+gononono64@users.noreply.github.com> Date: Thu, 10 Apr 2025 17:07:13 -0500 Subject: [PATCH] select fix issues with input select for qb. Try dat --- modules/input/_qb-input.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/input/_qb-input.lua b/modules/input/_qb-input.lua index a72dc2e..ae0da6a 100644 --- a/modules/input/_qb-input.lua +++ b/modules/input/_qb-input.lua @@ -39,14 +39,16 @@ function OxToQBInput(data) } if v.type == "select" then input.text = "" - input.options = { - {value = v.value, text = v.label} - } + input.options = {} + for k, j in pairs(v.options) do + table.insert(input.options, {value = j.value, text = j.label}) + end elseif v.type == "checkbox" then input.text = "" - input.options = { - {value = v.value, text = v.label} - } + input.options = {} + for k, j in pairs(v.options) do + table.insert(input.options, {value = j.value, text = j.label}) + end end table.insert(returnData, input) end