From 28c220082c2a8500cc4db785fbcb152fdacc2d74 Mon Sep 17 00:00:00 2001 From: Sky <108126483+cityparadise@users.noreply.github.com> Date: Sun, 20 Apr 2025 10:40:14 +0100 Subject: [PATCH] Update _qb-input.lua Fixed issue with default option not working correctly when creating qb-input menu --- modules/input/_qb-input.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/input/_qb-input.lua b/modules/input/_qb-input.lua index 4371b81..b08b0f1 100644 --- a/modules/input/_qb-input.lua +++ b/modules/input/_qb-input.lua @@ -36,7 +36,7 @@ function OxToQBInput(data) name = i, type = OxTypeToQBType(v.type), isRequired = v.required, - placeholder = v.default, + default = v.default or "", } if v.type == "select" then input.text = "" @@ -85,4 +85,4 @@ function OpenInput(title, data, isQBFormat, submitText) convertedData[tonumber(i)] = v end return convertedData -end \ No newline at end of file +end