Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit e22a9ee

Browse files
refactor(server/esx): error messaging for esx 1.11 (#1833)
1 parent 425a4bd commit e22a9ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/bridge/esx/server.lua

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ local ESX
1414

1515
SetTimeout(500, function()
1616
ESX = exports.es_extended:getSharedObject()
17-
18-
if ESX.CreatePickup then
17+
local customInventory = ESX.GetConfig().CustomInventory
18+
19+
if customInventory ~= nil and customInventory ~= "ox" then
20+
error('ox_inventory requires Config.CustomInventory to be set to "ox" in the ESX Config.')
21+
elseif ESX.CreatePickup then
1922
error('ox_inventory requires a ESX Legacy v1.6.0 or above, refer to the documentation.')
2023
end
2124

0 commit comments

Comments
 (0)