From 0fd6873fdf9d27457f50bcb827991e7889eb2a7c Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 14 Feb 2023 00:24:29 +1100 Subject: [PATCH] Create CreateTemporaryStash.md --- .../Server/Inventory/CreateTemporaryStash.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/ox_inventory/Functions/Server/Inventory/CreateTemporaryStash.md 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`