Skip to content

Commit

Permalink
fix(client/qb): remove playerData.items lookup from metatable
Browse files Browse the repository at this point in the history
Doesn't even make sense for the context.
  • Loading branch information
thelindat committed Feb 15, 2023
1 parent 51f587e commit d65f8d4
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 @@ -11,7 +11,7 @@ local usingOxInventory = GetResourceState('ox_inventory') ~= "missing"

local playerItems = setmetatable({}, {
__index = function(self, index)
self[index] = usingOxInventory and exports.ox_inventory:Search('count', index) or playerData.items[index] or 0
self[index] = usingOxInventory and exports.ox_inventory:Search('count', index) or 0
return self[index]
end
})
Expand Down

0 comments on commit d65f8d4

Please sign in to comment.