Skip to content

Commit

Permalink
FIx(Bills, Licenses)
Browse files Browse the repository at this point in the history
[/] Added a check for Bills/Licenses Menu
  • Loading branch information
zRxnx committed Apr 24, 2024
1 parent 1f8c7eb commit f8a599a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ OpenInfoLicenseMenu = function()
local MENU = {}
local PLAYER_LICENSES = lib.callback.await('zrx_personalmenu:server:getPlayerLicenses', 500)

if type(PLAYER_LICENSES) == 'string' then
PLAYER_LICENSES = {}
end

StartCooldown()

if #PLAYER_LICENSES > 0 then
Expand Down Expand Up @@ -1558,6 +1562,10 @@ OpenBillMenu = function()
end
StartCooldown()

if type(PLAYER_BILLS) == 'string' then
PLAYER_BILLS = {}
end

for k, data in pairs(PLAYER_BILLS) do
money += data.amount
end
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_experimental_fxv2_oal 'yes'

author 'zRxnx'
description 'Advanced personal menu system'
version '2.6.1'
version '2.6.2'

dependencies {
'zrx_utility',
Expand Down

0 comments on commit f8a599a

Please sign in to comment.