Main/resources/[carscripts]/community_bridge/modules/input/ox_lib/client.lua

21 lines
598 B
Lua
Raw Normal View History

2025-08-06 16:37:06 +02:00
---@diagnostic disable: duplicate-set-field
local resourceName = "ox_lib"
local configValue = BridgeClientConfig.InputSystem
if (configValue == "auto" and GetResourceState(resourceName) == "missing") or (configValue ~= "auto" and configValue ~= resourceName) then return end
Input = {}
function Input.Open(title, data, isQBFormat, submitText)
local inputs = data.inputs
if isQBFormat then
return lib.inputDialog(title, QBToOxInput(inputs))
else
return lib.inputDialog(title, data)
end
end
function Input.GetResourceName()
return resourceName
end
return Input