Temporary Inventories
On this page we dive into what "Temporary Inventories" are and what they can be used for.
local api = exports["bb_inventory"]:GetAPI()
api.RegisterTemporaryInventoryHandler("police_storage",
function(identifier, temporaryData, source)
-- Add any checks you'd like,
-- such as checking if the player has the right to access this storage
end)local api = exports["bb_inventory"]:GetAPI()
api.RegisterTemporaryInventoryHandler("police_storage",
function(identifier, temporaryData, source)
-- Add any checks you'd like,
-- such as checking if the player has the right to access this storage
local inventory = api.LoadInventoryByIdentifier(identifier)
if (inventory) then
return inventory
end
end)Last updated