Skip to content

Commit

Permalink
fix(qb,frontend): Upstream fixes and nil check for metadata (#380)
Browse files Browse the repository at this point in the history
Co-authored-by: TheiLLeniumStudios <theilleniumstudios@gmail.com>
  • Loading branch information
TheiLLeniumStudios and TheiLLeniumStudios authored Dec 25, 2023
1 parent b2b54a0 commit c985128
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion client/framework/qb/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ end

function Framework.RestorePlayerArmour()
Framework.UpdatePlayerData()
if PlayerData then
if PlayerData and PlayerData.metadata then
Wait(1000)
SetPedArmour(cache.ped, PlayerData.metadata["armor"])
end
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UI</title>
<script type="module" crossorigin src="./assets/index.96782610.js"></script>
<script type="module" crossorigin src="./assets/index.b8e72b46.js"></script>
</head>

<body>
Expand Down

0 comments on commit c985128

Please sign in to comment.