mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
attempt to make linden less sad
This commit is contained in:
1 parent
f89fa09cab
commit
f60a847c56
4 files changed
+22
-7
No files matched your search
@@ -22,7 +22,7 @@ By returning `false`, you can cancel the action and revert the inventory state.
|
|||||||
**Payload:**
|
**Payload:**
|
||||||
|
|
||||||
- source: `number`
|
- source: `number`
|
||||||
- action: `move` or `stack` or `swap` or `give`
|
- action: `'move'` or `'stack'` or `'swap'` or `'give'`
|
||||||
- fromInventory: `number` or `string`
|
- fromInventory: `number` or `string`
|
||||||
- toInventory:` number` or `string`
|
- toInventory:` number` or `string`
|
||||||
- fromType: `string`
|
- fromType: `string`
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb)
|
|||||||
|
|
||||||
- inv: `table` or `string` or `number`
|
- inv: `table` or `string` or `number`
|
||||||
- The inventory's unique id, or a table with the id and owner.
|
- The inventory's unique id, or a table with the id and owner.
|
||||||
- playerId: `1`, inventoryId: `gloveVGH283`, `{ id = 'personallocker', owner = 'license:xxxxxx'}`
|
- playerId: `1`
|
||||||
|
- inventoryId: `gloveVGH283`
|
||||||
|
- `{ id = 'personallocker', owner = 'license:xxxxxx'}`
|
||||||
- item: `string`
|
- item: `string`
|
||||||
- The name of the item to add to the target.
|
- The name of the item to add to the target.
|
||||||
- count: `number`
|
- count: `number`
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ exports.ox_inventory:RemoveItem(inv, item, count, metadata, slot)
|
|||||||
|
|
||||||
- inv: `table` or `string` or `number`
|
- inv: `table` or `string` or `number`
|
||||||
- The inventory's unique id, or a table with the id and owner.
|
- The inventory's unique id, or a table with the id and owner.
|
||||||
- playerId: `1`, inventoryId: `gloveVGH283`, `{ id = 'personallocker', owner = 'license:xxxxxx'}`
|
- playerId: `1`
|
||||||
|
- inventoryId: `gloveVGH283`
|
||||||
|
- `{ id = 'personallocker', owner = 'license:xxxxxx'}`
|
||||||
- item: `string`
|
- item: `string`
|
||||||
- The name of the item to remove from the target.
|
- The name of the item to remove from the target.
|
||||||
- count: `number`
|
- count: `number`
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ title: Creating shops
|
|||||||
import IconButton from '@site/src/components/IconButton'
|
import IconButton from '@site/src/components/IconButton'
|
||||||
import { BsGithub } from 'react-icons/bs'
|
import { BsGithub } from 'react-icons/bs'
|
||||||
|
|
||||||
Builtin hops are defined in [data/shops.lua](https://github.com/overextended/ox_inventory/blob/main/data/shops.lua), and more can be added here to benefit from the built-in markers or zones support.
|
Builtin shops are defined in [data/shops.lua](https://github.com/overextended/ox_inventory/blob/main/data/shops.lua), and more can be added here to benefit from the built-in markers or zones support.
|
||||||
|
|
||||||
## Shop definition
|
## Shop definition
|
||||||
|
|
||||||
@@ -41,17 +41,28 @@ Builtin hops are defined in [data/shops.lua](https://github.com/overextended/ox_
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
luke i hate this pls fix
|
|
||||||
|
|
||||||
- name: `string`
|
- name: `string`
|
||||||
- The label to display when the shop is open.
|
- The label to display when the shop is open.
|
||||||
- blip?: `table`
|
- blip?: `table`
|
||||||
- Creates a blip with the given settings. Leave it undefined for no blip to be created.
|
- Creates a blip with the given settings. Leave it undefined for no blip to be created.
|
||||||
|
- id: `number`
|
||||||
|
- colour: `number`
|
||||||
|
- scale: `number`
|
||||||
- groups?: `table`
|
- groups?: `table`
|
||||||
- Key-value pairs of job name and minimum grade to access the shop.
|
- Key-value pairs of job name and minimum grade to access the shop.
|
||||||
- `{["police"] = 0, ["ambulance"] = 2}`
|
- `{["police"] = 0, ["ambulance"] = 2}`
|
||||||
- inventory: `table`
|
- inventory: `table`
|
||||||
- { name: `string`, price: `number`, currency?: `string`, count?: `number`, license?: `string`, metadata?: `table`, grade?: `number` }
|
- name: `string`
|
||||||
|
- price: `number`
|
||||||
|
- currency?: `string`
|
||||||
|
- Item to be used as currency.
|
||||||
|
- count?: `number`
|
||||||
|
- Amount of the item in the stock.
|
||||||
|
- license?: `string`
|
||||||
|
- License required to purchase the item.
|
||||||
|
- metadata?: `table`
|
||||||
|
- grade?: `number`
|
||||||
|
- Grade required to purchase the item.
|
||||||
- locations?: `vector3[]`
|
- locations?: `vector3[]`
|
||||||
- An array of coordinates to create unique instances of the shop archetype at, using markers.
|
- An array of coordinates to create unique instances of the shop archetype at, using markers.
|
||||||
- targets?: `table[]`
|
- targets?: `table[]`
|
||||||
|
|||||||
Reference in new issue
Block a user