Skip to content

Commit

Permalink
refactor(server/esx): error messaging for esx 1.11 (#1833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios authored Nov 14, 2024
1 parent 425a4bd commit e22a9ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/bridge/esx/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e22a9ee

Please sign in to comment.