mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +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,17 +1,17 @@
|
||||
Drops can be created from other resources, containing a variety of items and utilising a custom label (instead of 'Drop 32648').
|
||||
|
||||
```lua
|
||||
-- prefix: string
|
||||
-- items: table
|
||||
-- name: string
|
||||
-- count: number
|
||||
-- metadata: table (optional)
|
||||
-- coords: vector3
|
||||
-- slots: number (optional)
|
||||
-- maxWeight: number (optional)
|
||||
-- instance: string | number (optional)
|
||||
exports.ox_inventory:CustomDrop(prefix, items, coords, slots, maxWeight, instance)
|
||||
```
|
||||
* prefix: `string`
|
||||
* items: `table`
|
||||
* name: `string`
|
||||
* count: `number`
|
||||
* metadata?: `table`
|
||||
* coords: `vector3`
|
||||
* slots?: `number`
|
||||
* maxWeight?: `number`
|
||||
* instance?: `string` or `number`
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:CustomDrop('Carcass', {
|
||||
|
||||
Reference in new issue
Block a user