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:
1 parent
b90463b7d2
commit
0088559b91
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user