Skip to content

Commit

Permalink
chore: detect UI errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
masonschafercodes committed Mar 1, 2023
1 parent a7e856c commit 345feac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -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 = {}

Expand Down

0 comments on commit 345feac

Please sign in to comment.