mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
update inventory server docs
This commit is contained in:
1 parent
c013d3ff0c
commit
4dbd9dd4ab
21 files changed
+112
-91
No files matched your search
@@ -1,25 +1,23 @@
|
||||
Creates a new custom stash.
|
||||
|
||||
```lua
|
||||
-- id: string or number
|
||||
-- label: string
|
||||
-- slots: number
|
||||
-- maxWeight: number
|
||||
-- owner: string or boolean or nil
|
||||
-- groups: table
|
||||
-- coords: vector3
|
||||
exports.ox_inventory:RegisterStash(id, label, slots, maxWeight, owner, groups, coords)
|
||||
```
|
||||
|
||||
* `id` - Stash identifier when loading from the database.
|
||||
* `label` - Display name when inventory is open.
|
||||
* `owner` - Defines stash permissions.
|
||||
* `string`: Can only access the stash linked to the owner.
|
||||
* `true`: Each player has a unique stash but can request other player's stashes.
|
||||
* `nil`: Always shared.
|
||||
* `groups` - Player groups (jobs) able to access the stash.
|
||||
* id: `string` or `number`
|
||||
* Stash identifier when loading from the database.
|
||||
* label: `string`
|
||||
* Display name when inventory is open.
|
||||
* slots: `number`
|
||||
* maxWeight: `number`
|
||||
* owner: `string` or `boolean` or `nil`
|
||||
* `string`: Can only access the stash linked to the owner.
|
||||
* `true`: Each player has a unique stash but can request other player's stashes.
|
||||
* `nil`: Always shared.
|
||||
* groups: `table`
|
||||
* Table of player groups (jobs) able to access the stash.
|
||||
* Table of group names where the numeric value is the minimum grade required.
|
||||
* `{['police'] = 0, ['ambulance'] = 2}`
|
||||
* coords: `vector3`
|
||||
|
||||
:::caution
|
||||
|
||||
@@ -28,4 +26,4 @@ This function needs to be triggered before a player can open the stash.
|
||||
|
||||
**Example:**
|
||||
|
||||
For a use case example on this function check out the written [Guide](../../../Guides/stashes.md) for it.
|
||||
For a use case example on this function check out the written [Guide](../../../Guides/stashes.md) for it.
|
||||
Reference in new issue
Block a user