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)