move inventory functions into single file

This commit is contained in:
Luke committed 2023-06-08 22:32:30 +02:00
1 parent e5b36b404c
commit 77666c92fb
64 files changed
+1389 -1226

No files matched your search

+30 -30
View File
@@ -1,5 +1,5 @@
---
title: Creating crafting points
title: Crafting
---
Crafting locations, items and their ingredients are defined in [data/crafting.lua](https://github.com/overextended/ox_inventory/blob/main/data/crafting.lua).
@@ -42,33 +42,33 @@ Crafting locations, items and their ingredients are defined in [data/crafting.lu
},
```
* items: `table`
* name: `string`
* ingredients: `table`
* Item ingredients can be seen in the item tooltip.
* Key-value pairs of item name and consume count
* key - Item name.
* value - If 1 or above it's the consume count, if below 1 and above 0 it's the durability consume amount, if
- items: `table`
- name: `string`
- ingredients: `table`
- Item ingredients can be seen in the item tooltip.
- Key-value pairs of item name and consume count
- key - Item name.
- value - If 1 or above it's the consume count, if below 1 and above 0 it's the durability consume amount, if
set to 0 then the item is required but not consumed.
* duration: `number`
* Crafting duration in milliseconds.
* count: `number`
* Item amount received upon crafting.
* metadata: `table`
* Metadata applied to the item being crafted.
* points: `vector3[]`
* Interaction locations that will open the crafting inventory.
* groups: `table`
* Key-value pairs of job name and minimum grade to access the crafting location.
* `{["police"] = 0, ["ambulance"] = 2}`
* zones: `table`
* ox_lib targeting zones used for ox_target.
* coords: `vector3`
* size: `vector3`
* distance: `number`
* rotation: `number`
* blip: `table`
* id: `number`
* Blip sprite number.
* colour: `number`
* scale: `number`
- duration: `number`
- Crafting duration in milliseconds.
- count: `number`
- Item amount received upon crafting.
- metadata: `table`
- Metadata applied to the item being crafted.
- points: `vector3[]`
- Interaction locations that will open the crafting inventory.
- groups: `table`
- Key-value pairs of job name and minimum grade to access the crafting location.
- `{["police"] = 0, ["ambulance"] = 2}`
- zones: `table`
- ox_lib targeting zones used for ox_target.
- coords: `vector3`
- size: `vector3`
- distance: `number`
- rotation: `number`
- blip: `table`
- id: `number`
- Blip sprite number.
- colour: `number`
- scale: `number`
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: Creating custom stashes
title: Custom stashes
---
import { GhButton } from '@components/button';