bags: use static return for bank slots

This commit is contained in:
shagu
2018-09-28 22:34:09 +02:00
parent 806784e094
commit aef2a61c6b
+2 -1
View File
@@ -184,7 +184,8 @@ end
-- returns: [string] the type of the bag, e.g "QUIVER"
function pfUI.api.GetBagFamily(bag)
if bag == -2 then return "KEYRING" end
if bag == 0 then return "BAG" end
if bag == 0 then return "BAG" end -- backpack
if bag == -1 then return "BAG" end -- bank
local _, _, id = strfind(GetInventoryItemLink("player", ContainerIDToInventoryID(bag)) or "", "item:(%d+)")
if id then