Skip to content

Commit

Permalink
fix(qb): resetting player item table (#63)
Browse files Browse the repository at this point in the history
fixes #57
  • Loading branch information
Manason authored Feb 8, 2023
1 parent f5b0a6f commit b144455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/framework/qb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ local playerItems = setmetatable({}, {
})

local function setPlayerItems()
playerItems = {}
for _, item in pairs(playerData.items) do
playerItems[item.name] = item.amount
end
Expand Down Expand Up @@ -100,4 +101,4 @@ function PlayerHasItems(filter)
end

return true
end
end

0 comments on commit b144455

Please sign in to comment.