qb also returns strings for some reason

qb returns "true" or "false" instead of true or false for checkbox's and probably other stuff. Converting to bools to be consistent with ox's returns
This commit is contained in:
Mr.Crowley committed 2026-02-24 01:14:50 -06:00
1 parent b90463b7d2
commit 0088559b91
1 file changed
+1
+1
View File
@@ -33,6 +33,7 @@ function Input.Open(title, data, isQBFormat, submitText)
for i, v in pairs(returnData) do
local index = i and tonumber(i)
v = tostring(v) == "true" and true or (tostring(v) == "false" and false or v)
if not index then
table.insert(convertedData, v)
else