mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 04:01:32 +00:00
FIX - handle unavailable ESX integrations
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user