From e22a9eeb9c7b19bff7b2b8ef174bf8da3936fad5 Mon Sep 17 00:00:00 2001 From: Kasey Fitton Date: Thu, 14 Nov 2024 08:20:58 +0000 Subject: [PATCH] refactor(server/esx): error messaging for esx 1.11 (#1833) --- modules/bridge/esx/server.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/bridge/esx/server.lua b/modules/bridge/esx/server.lua index 028127282d..f1a88435f2 100644 --- a/modules/bridge/esx/server.lua +++ b/modules/bridge/esx/server.lua @@ -14,8 +14,11 @@ local ESX SetTimeout(500, function() ESX = exports.es_extended:getSharedObject() - - if ESX.CreatePickup then + local customInventory = ESX.GetConfig().CustomInventory + + if customInventory ~= nil and customInventory ~= "ox" then + error('ox_inventory requires Config.CustomInventory to be set to "ox" in the ESX Config.') + elseif ESX.CreatePickup then error('ox_inventory requires a ESX Legacy v1.6.0 or above, refer to the documentation.') end