From 5868312388dcf35b8df9c6053449b9ee25fd1617 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Wed, 7 May 2025 13:32:54 +0100 Subject: [PATCH] fix ps-inv/lj-inv check If you didn't have either PS-Inventory or LJ-Inventory, this ended up breaking loading as it ended up checking is `nil` was started --- shared/coreloader.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/coreloader.lua b/shared/coreloader.lua index 28a1949..24fe9f5 100644 --- a/shared/coreloader.lua +++ b/shared/coreloader.lua @@ -14,8 +14,8 @@ Items, Vehicles, Jobs, Gangs, Core, ESX = {}, nil, nil, nil, nil, nil ------------------------------------------------------------- -- Correct QB Inventory Export ------------------------------------------------------------- --- Ensure that the QB inventory export is corrected from 'qb-inventory' to 'ps-inventory' or 'lj-inventory' if needed. -Exports.PSInv = (isStarted("ps-inventory") and "ps-inventory") or (isStarted("lj-inventory") and "lj-inventory") +-- Correct ps-invetory to ls-inventory if somehow you still have that +Exports.PSInv = isStarted("lj-inventory") and "lj-inventory" or Exports.PSInv ------------------------------------------------------------- -- Framework Exports and Inventory Identifiers