qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
50 stars 379 forks source link

Make functions available for non-player inventories (stashes) #539

Open DrMeepso opened 3 months ago

DrMeepso commented 3 months ago

Description

Makes a few functions like "CanAddItem" and "SetInventory" usable on stashes Added: "CreateInventory" - Creates a stash so it can be made ahead of time before using "OpenInventory" for things like adding items "GetInventory" - Returns the inventory given via the identifier pram, used to things like checking what items are in a stash "RemoveInventory" - Removes a inventory from the "Inventories" table so it wont get saved to the SQL db

Pretty much just functions useful for making and interfacing with stashes for things like custom jobs

Checklist

DrMeepso commented 3 months ago

Everything has been tested & works!

IamLation commented 1 month ago

Great PR, would love to see this

DrMeepso commented 1 week ago

fixed linting issues.