From d671f704ee306759f5e3c984fbb3a3e69a68142c Mon Sep 17 00:00:00 2001 From: "Leon.Schmidt" Date: Tue, 11 Aug 2026 18:26:12 +0200 Subject: [PATCH] FIX - handle unavailable ESX integrations --- sky_phone/source/bridge/client/housing/esx_property.lua | 5 +++++ sky_phone/source/bridge/server/frameworks/esx.lua | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/sky_phone/source/bridge/client/housing/esx_property.lua b/sky_phone/source/bridge/client/housing/esx_property.lua index 08fe3f3..9c9ef8c 100644 --- a/sky_phone/source/bridge/client/housing/esx_property.lua +++ b/sky_phone/source/bridge/client/housing/esx_property.lua @@ -2,6 +2,11 @@ if Bridge.Framework.GetName() ~= "esx" then return end +if GetResourceState("esx_property") ~= "started" then + print("[sky_phone] esx_property is not started; the housing provider is disabled.") + return +end + local ESX = exports["es_extended"]:getSharedObject() local callback_names = { diff --git a/sky_phone/source/bridge/server/frameworks/esx.lua b/sky_phone/source/bridge/server/frameworks/esx.lua index 33658e1..1c4a820 100644 --- a/sky_phone/source/bridge/server/frameworks/esx.lua +++ b/sky_phone/source/bridge/server/frameworks/esx.lua @@ -2,6 +2,10 @@ if Bridge.Framework.Name ~= "esx" then return end +if GetResourceState("es_extended") ~= "started" then + error("[sky_phone] ESX is configured, but es_extended is not started.") +end + local ESX = exports["es_extended"]:getSharedObject() local function get_player(source)