diff --git a/docs/ox_inventory/Functions/Server/Inventory/CreateTemporaryStash.md b/docs/ox_inventory/Functions/Server/Inventory/CreateTemporaryStash.md new file mode 100644 index 00000000..b1262e20 --- /dev/null +++ b/docs/ox_inventory/Functions/Server/Inventory/CreateTemporaryStash.md @@ -0,0 +1,22 @@ +Creates a temporary stash which will be removed after some time. + +```lua +exports.ox_inventory:RegisterStash(properties) +``` + +- properties: `table` + - label: `string` + - slots: `number` + - maxWeight: `number` + - owner?: `string` `number` or `boolean` + - `string`: Can only access the stash linked to the owner. + - `true`: Each player has a unique stash but can request other player's stashes. + - The inventory is always shared if `false` or `nil`. + - groups?: `table` + - Table of group names (e.g. jobs) where the numeric value is the minimum grade required. + - `{['police'] = 0, ['ambulance'] = 2}` + - coords?: `vector3` + - Stash can only be accessed while nearby. + +Return: +- inventoryId: `string`