Skip to content

Commit b8d81cb

Browse files
committed
Update the docs
- Update install guide - Updated ox_inventory items - Updated Processing Tables information - Updated common-errors.mdx - Updated plant information
1 parent e70c92e commit b8d81cb

File tree

5 files changed

+356
-262
lines changed

5 files changed

+356
-262
lines changed

pages/it-drugs/adjustments/drugs.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you use the ox_inventory, please use the following template to add the drugs
3939
close = true,
4040
description = "Item Description",
4141
server = {
42-
export = "it-drugs.item_name"
42+
export = "it-drugs.takeDrug"
4343
},
4444
client = {
4545
image = "item_name.png",
@@ -66,7 +66,13 @@ If you use the ox_inventory, please use the following template to add the drugs
6666
- intenseEffect
6767
- focusEffect
6868
- superJump
69-
- swimming
69+
- swimming
70+
- armor-20
71+
72+
<Callout type="info">
73+
You can change the number of the armor effect to the desired value. For example, `armor-50` will give you 50 armor. The maximum value is 100.
74+
</Callout>
75+
7076
</Accordion>
7177
</AccordionGroup>
7278

pages/it-drugs/adjustments/plants.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,26 @@ time = 3000 -- Time it takes to plant/harvest in miliseconds
168168

169169
---
170170

171+
<Callout type="warning">
172+
If you use the ox_inventory, please use the following template to add the plants to your items.lua:
173+
```lua
174+
["item_name"] = {
175+
label = "Item Label",
176+
weight = 20,
177+
stack = true,
178+
close = true,
179+
description = "Item Description",
180+
server = {
181+
export = "it-drugs.useSeed"
182+
},
183+
client = {
184+
image = "item_name.png",
185+
}
186+
},
187+
```
188+
**Each `item_name` must be replaced with the actual item name**
189+
</Callout>
190+
171191
<AccordionGroup>
172192
<Accordion title="Plant configuration template">
173193
```lua copy

pages/it-drugs/adjustments/processing-tables.mdx

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import ExternLink from '@components/ExternLink'
88
import Accordion from '@components/Accordion'
99
import AccordionGroup from '@components/AccordionGroup'
1010
import { IconExternalLink } from '@tabler/icons-react'; // Importiere das Tabler-Icon
11+
import { Callout } from '@components/Callout'
1112

1213
# ⚗️・Processing Tables
1314
So let's start setting up the processing tables.
@@ -154,15 +155,37 @@ The chance in percent that the production of an item can go wrong, which means t
154155

155156
---
156157

157-
<Accordion title="Processin table configuration template">
158-
```lua copy
159-
['uniqe_table_id'] = {
160-
type = 'weed',
161-
model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
162-
recipes = {
163-
-- Here you can add as many recipes as you want
164-
}
165-
}
158+
<Callout type="warning">
159+
If you use the ox_inventory, please use the following template to add the tables to your items.lua:
160+
```lua
161+
["item_name"] = {
162+
label = "Item Label",
163+
weight = 1000,
164+
stack = false,
165+
close = true,
166+
description = "Item Description",
167+
server = {
168+
export = "it-drugs.placeProcessingTable"
169+
},
170+
client = {
171+
image = "item_name.png",
172+
}
173+
},
166174
```
167-
</Accordion>
175+
**Each `item_name` must be replaced with the actual item name**
176+
</Callout>
177+
178+
<AccordionGroup>
179+
<Accordion title="Processin table configuration template">
180+
```lua copy
181+
['uniqe_table_id'] = {
182+
type = 'weed',
183+
model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
184+
recipes = {
185+
-- Here you can add as many recipes as you want
186+
}
187+
}
188+
```
189+
</Accordion>
190+
</AccordionGroup>
168191

pages/it-drugs/common-errors.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,21 @@ animation = {
7272
anim = 'player_search',
7373
},
7474
```
75-
</Steps>
75+
</Steps>
76+
77+
## Planting Errors
78+
79+
```ansi
80+
 [ERROR] [getPlantByNetId] - Plant with netId: 0 does not exists!
81+
```
82+
83+
If you get this error, it means that the script was unable to find the plant with the given netId.
84+
In most cases, this error occurs when a player try to interact with a plant that is not managed by the script.
85+
So in most cases you can ignore this error.
86+
87+
## Selling Errors
88+
### Can't sell drugs to npc
89+
90+
If yoo can't sell drugs to a NPC make sure your are in on of the zones that are defined in the `Config.SellZones` in the `config.lua` file.
91+
If you are in one of the zones and still can't sell drugs to the NPC, please make sure that you are using the latest version of the script.
92+
Also you can enable `Config.ManualZoneChecker` in the `config.lua` file to check the zones manually.

0 commit comments

Comments
 (0)