Skip to content

Commit

Permalink
Merge pull request #34 from qw-scripts/qw-scripts--detect-ui-errors
Browse files Browse the repository at this point in the history
chore: detect UI errors
  • Loading branch information
FjamZoo authored Mar 3, 2023
2 parents 4702169 + 345feac commit 0c8481b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
src export-ignore
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 0c8481b

Please sign in to comment.