mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 08:13:23 +00:00
ENH - add standalone framework and inventory bridges
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
local configured_framework = Config.Bridge.Framework
|
||||
|
||||
if configured_framework == "auto" then
|
||||
if GetResourceState("es_extended") == "started" then
|
||||
configured_framework = "esx"
|
||||
elseif GetResourceState("qbx_core") == "started" then
|
||||
configured_framework = "qbox"
|
||||
elseif GetResourceState("qb-core") == "started" then
|
||||
configured_framework = "qb"
|
||||
end
|
||||
end
|
||||
|
||||
if configured_framework ~= "esx" and configured_framework ~= "qbox" and configured_framework ~= "qb" then
|
||||
error(("[sky_phone] Unsupported or unavailable framework '%s'."):format(tostring(configured_framework)))
|
||||
end
|
||||
|
||||
Bridge.Framework.Name = configured_framework
|
||||
|
||||
function Bridge.Framework.GetName()
|
||||
return Bridge.Framework.Name
|
||||
end
|
||||
Reference in New Issue
Block a user