5 files changed
+11
-8
No files matched your search
@@ -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 = ""
|
||||
@@ -47,8 +47,12 @@ function OxToQBInput(data)
|
||||
elseif v.type == "checkbox" then
|
||||
input.text = ""
|
||||
input.options = {}
|
||||
for k, j in pairs(v.options) do
|
||||
table.insert(input.options, {value = j.value, text = j.label})
|
||||
if v.options then -- Checks if options varible is valid so checkboxes are bundled together (not used by ox for each checkpoint)
|
||||
for k, j in pairs(v.options) do
|
||||
table.insert(input.options, {value = j.value, text = j.label, checked = j.checked}) -- added checked option (used to show box as ticked or not)
|
||||
end
|
||||
else -- If options is not valid or people pass a single checkbox then it will be a single checkbox per entry
|
||||
table.insert(input.options, {value = v.value, text = v.label, checked = v.checked}) -- Kept value just incase it's used for other stuffs
|
||||
end
|
||||
end
|
||||
table.insert(returnData, input)
|
||||
@@ -85,4 +89,4 @@ function OpenInput(title, data, isQBFormat, submitText)
|
||||
convertedData[tonumber(i)] = v
|
||||
end
|
||||
return convertedData
|
||||
end
|
||||
end
|
||||
@@ -5,7 +5,7 @@ if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (c
|
||||
|
||||
local targetDebug = false
|
||||
local function detectDebugEnabled()
|
||||
if BridgeClientConfig.DebugLevel == 2 then
|
||||
if BridgeSharedConfig.DebugLevel == 2 then
|
||||
targetDebug = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@ if GetResourceState('ox_target') == 'started' then return end -- this is for old
|
||||
|
||||
local targetDebug = false
|
||||
local function detectDebugEnabled()
|
||||
if BridgeClientConfig.DebugLevel == 2 then
|
||||
if BridgeSharedConfig.DebugLevel == 2 then
|
||||
targetDebug = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@ if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (c
|
||||
|
||||
local targetDebug = false
|
||||
local function detectDebugEnabled()
|
||||
if BridgeClientConfig.DebugLevel == 2 then
|
||||
if BridgeSharedConfig.DebugLevel == 2 then
|
||||
targetDebug = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
BridgeClientConfig = {}
|
||||
BridgeClientConfig.DebugLevel = 0 -- Debug level, 0 for none, 1 for some, 2 for all data
|
||||
BridgeClientConfig.NotifySystem = "ox" -- [ ox | qb | esx | mythic | pNotify | t-notify | wasabi | lab | custom ]
|
||||
BridgeClientConfig.ShowHelpText = "ox" -- [ ox | qb | jg | okok | cd | lab | custom ]
|
||||
BridgeClientConfig.InputSystem = "auto" -- [ auto | ox | qb ]
|
||||
|
||||
Reference in new issue
Block a user