From dd34f8aab1e44e47b87c3447ad8086ca40b3f054 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 10 Jun 2025 18:26:57 +0100 Subject: [PATCH] Add auto checkers for QBInvNew I had to add a checker for if old qbinv was being used or new qbinv This was made into a variable, but this update makes the script auto set it if it can't find an export. Automating the process --- starter.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/starter.lua b/starter.lua index 118bd9a..de2d95c 100644 --- a/starter.lua +++ b/starter.lua @@ -188,4 +188,18 @@ for _, v in pairs({ -- This is a specific load order if debugMode then print("^5CoreLoader^7: ^2loaded file^7: ^3"..(v):gsub("/", "^7/^3"):gsub("%.lua", "^7.lua").."^7") end -end \ No newline at end of file +end + +if isStarted(QBInv) then + if not checkExportExists(QBInv, "CreateShop") then + print("^6Bridge^7: ^2Can^7'^2t ^2find new QBInv export^7, ^2forcing ^1QBInvNew ^2to ^1false^7") + QBInvNew = false + end +end + +if isStarted(PSInv) then + if not checkExportExists(PSInv, "CreateShop") then + print("^6Bridge^7: ^2Can^7't ^2find new PSInv export^7, ^2forcing ^1QBInvNew ^2to ^1false^7") + QBInvNew = false + end +end