attempt to make linden less sad

This commit is contained in:
Luke committed 2022-11-06 23:57:47 +01:00
1 parent f89fa09cab
commit f60a847c56
4 files changed
+22 -7

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ By returning `false`, you can cancel the action and revert the inventory state.
**Payload:**
- source: `number`
- action: `move` or `stack` or `swap` or `give`
- action: `'move'` or `'stack'` or `'swap'` or `'give'`
- fromInventory: `number` or `string`
- toInventory:` number` or `string`
- fromType: `string`
@@ -8,7 +8,9 @@ exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb)
- inv: `table` or `string` or `number`
- 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`
- The name of the item to add to the target.
- count: `number`
@@ -6,7 +6,9 @@ exports.ox_inventory:RemoveItem(inv, item, count, metadata, slot)
- inv: `table` or `string` or `number`
- 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`
- The name of the item to remove from the target.
- count: `number`
+15 -4
View File
@@ -5,7 +5,7 @@ title: Creating shops
import IconButton from '@site/src/components/IconButton'
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
@@ -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`
- The label to display when the shop is open.
- blip?: `table`
- Creates a blip with the given settings. Leave it undefined for no blip to be created.
- id: `number`
- colour: `number`
- scale: `number`
- groups?: `table`
- Key-value pairs of job name and minimum grade to access the shop.
- `{["police"] = 0, ["ambulance"] = 2}`
- 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[]`
- An array of coordinates to create unique instances of the shop archetype at, using markers.
- targets?: `table[]`