whitespace

This commit is contained in:
MrNewb committed 2025-02-05 22:51:59 -05:00
1 parent 2fa129dddd
commit 6bcfc370d0
3 files changed
+1 -14

No files matched your search

-4
View File
@@ -1,7 +1,5 @@
if GetResourceState('ox_lib') ~= 'started' or (BridgeClientConfig.InputSystem ~= "ox" and BridgeClientConfig.InputSystem ~= "auto") then return end if GetResourceState('ox_lib') ~= 'started' or (BridgeClientConfig.InputSystem ~= "ox" and BridgeClientConfig.InputSystem ~= "auto") then return end
function QBTypeToOxType(_type) function QBTypeToOxType(_type)
if _type == "text" then if _type == "text" then
return "input" return "input"
@@ -18,7 +16,6 @@ function QBTypeToOxType(_type)
end end
end end
function QBToOxInput(data) function QBToOxInput(data)
local returnData = {} local returnData = {}
for i, v in pairs(data) do for i, v in pairs(data) do
@@ -44,7 +41,6 @@ function QBToOxInput(data)
return returnData return returnData
end end
function OpenInput(title, data, isQBFormat, submitText) function OpenInput(title, data, isQBFormat, submitText)
local inputs = data.inputs local inputs = data.inputs
if isQBFormat then if isQBFormat then
+1 -3
View File
@@ -1,8 +1,6 @@
if GetResourceState('qb-input') ~= 'started' or (BridgeClientConfig.InputSystem ~= "qb" and BridgeClientConfig.InputSystem ~= "auto") then return end if GetResourceState('qb-input') ~= 'started' or (BridgeClientConfig.InputSystem ~= "qb" and BridgeClientConfig.InputSystem ~= "auto") then return end
-- ox to Qb
function OxTypeToQBType(_type) function OxTypeToQBType(_type)
if _type == "input" then if _type == "input" then
return "text" return "text"
@@ -65,5 +63,5 @@ function OpenInput(title, data, isQBFormat, submitText)
header = title, header = title,
submitText = submitText or "Submit", submitText = submitText or "Submit",
inputs = input inputs = input
}) })
end end
-7
View File
@@ -78,14 +78,7 @@ if GetResourceState('ox_lib') ~= 'started' and GetResourceState('qb-menu') ~= 's
-- "input", "number", "checkbox", "select", "multi-select", "slider", "color", "date", "date-range", "time", "textarea", -- "input", "number", "checkbox", "select", "multi-select", "slider", "color", "date", "date-range", "time", "textarea",
Input = {} Input = {}
-- qb to ox -- qb to ox
--Open menu --Open menu
function Input.Open(title, data, isQBFormat, submitText) function Input.Open(title, data, isQBFormat, submitText)