From a7e856c567509f408ceb542a0cfba2c6b300bae7 Mon Sep 17 00:00:00 2001 From: masonschafercodes <57614646+masonschafercodes@users.noreply.github.com> Date: Fri, 27 Jan 2023 16:12:56 -0500 Subject: [PATCH 1/2] Update .gitattributes --- .gitattributes | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 435e9e3..dfe0770 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,2 @@ # Auto detect text files and perform LF normalization * text=auto -src export-ignore From 345feac081dac15c1c3af029f015e05f298dc819 Mon Sep 17 00:00:00 2001 From: masonschafercodes <57614646+masonschafercodes@users.noreply.github.com> Date: Wed, 1 Mar 2023 09:08:15 -0500 Subject: [PATCH 2/2] chore: detect UI errors This basically just detects if people have either downloaded the source and not the release. It will also error out if they have renamed the resource. --- server/main.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/main.lua b/server/main.lua index e9e0b52..4210562 100644 --- a/server/main.lua +++ b/server/main.lua @@ -1,4 +1,9 @@ local QBCore = exports['qb-core']:GetCoreObject() + +if not LoadResourceFile("Renewed-Banking", 'web/public/build/bundle.js') then + error('Unable to load UI. Build Renewed-Banking or download the latest release.\n ^https://github.com/Renewed-Scripts/Renewed-Banking/releases/latest/download/Renewed-Banking.rar^0\n If you are using a custom build of the UI, please make sure the resource name is Renewed-Banking (you may not rename the resource).') +end + local cachedAccounts = {} local cachedPlayers = {}