You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this methode is used to calculate if a player has free Inventory space:
function Player:PS2_HasInventorySpace( slots )
if not self.PS2_Inventory then
error( "Inventory of " .. tostring( self ) .. " not cached" )
end
local slotsUsed = table.Count( self.PS2_Inventory:getItems() )
local slotsTotal = self.PS2_Inventory:getNumSlots( )
return slotsTotal - slotsUsed - slots >= 0
end
But I would say this is flawed, as it just counts all items you have and checks it to the max amount of slots you have.. But some Items stack and so you have free slots left, but the Shop says you are full.
The text was updated successfully, but these errors were encountered:
Currently this methode is used to calculate if a player has free Inventory space:
But I would say this is flawed, as it just counts all items you have and checks it to the max amount of slots you have.. But some Items stack and so you have free slots left, but the Shop says you are full.
The text was updated successfully, but these errors were encountered: