FIX - handle unavailable ESX integrations

This commit is contained in:
Leon.Schmidt
2026-08-11 18:26:12 +02:00
parent bbcdc50ad0
commit d671f704ee
2 changed files with 9 additions and 0 deletions
@@ -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)