GetInventory
Returns the Inventory class itself.
- inv:
number
orstring
The inv argument can be a number (as player ID) or the inventory uniqueID.
exports["avp_grid_inventory"]:GetInventory(inv)
Example with stash. (Other inventory classes such as Player, will return other informations.)
--[[
{
"stashY":5308.7,
"isPublic":true,
"maxWeight":10000,
"inventoryName":"House Safe",
"inventoryUniqueId": "stash-1",
"inventoryY":7,
"inventoryX":7,
"stashZ":101.5,
"observers":[],
"stashX":2942.91,
"type":"stash",
"items":[]
}
]]