FIX - apply configurator settings instantly

This commit is contained in:
Leon.Schmidt
2026-08-21 16:48:54 +02:00
parent 1949a37006
commit 7df62153a2
44 changed files with 969 additions and 252 deletions
+16 -3
View File
@@ -21,11 +21,24 @@ local function resolve_framework()
return nil
end
framework_name = resolve_framework()
if not framework_name then
error("[sky_phone] No supported framework is running. Configure Config.Bridge.Framework.")
local function refresh_framework()
local resolved = resolve_framework()
if resolved ~= "esx" and resolved ~= "qbox" and resolved ~= "qb" then
error("[sky_phone] No supported framework is running. Configure Config.Bridge.Framework.")
end
if resolved == framework_name then
return
end
framework_name = resolved
esx = nil
qb = nil
end
refresh_framework()
AddEventHandler("sky_phone:configurator:updated", refresh_framework)
function Bridge.Framework.GetName()
return framework_name
end