Update _qb-input.lua

Fixed issue with default option not working correctly when creating qb-input menu
This commit is contained in:
Sky authored and GitHub committed 2025-04-20 10:40:14 +01:00
1 parent de98315aff
commit 28c220082c
1 file changed
+2 -2
+2 -2
View File
@@ -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
end