Skip to content

Commit

Permalink
fix(framework/qb): check if playerData has keys (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mkeefeus authored Nov 6, 2022
1 parent a3d7ff0 commit d4b021a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/framework/qb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if usingOxInventory then
AddEventHandler('ox_inventory:itemCount', function(name, count)
playerItems[name] = count
end)
elseif playerData then
elseif next(playerData) then
setPlayerItems()
end

Expand Down

0 comments on commit d4b021a

Please sign in to comment.