Skip to content

Commit

Permalink
Update the docs
Browse files Browse the repository at this point in the history
- Update install guide
- Updated ox_inventory items
- Updated Processing Tables information
- Updated common-errors.mdx
- Updated plant information
  • Loading branch information
AllRoundJonU committed Jan 14, 2025
1 parent e70c92e commit b8d81cb
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 262 deletions.
10 changes: 8 additions & 2 deletions pages/it-drugs/adjustments/drugs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you use the ox_inventory, please use the following template to add the drugs
close = true,
description = "Item Description",
server = {
export = "it-drugs.item_name"
export = "it-drugs.takeDrug"
},
client = {
image = "item_name.png",
Expand All @@ -66,7 +66,13 @@ If you use the ox_inventory, please use the following template to add the drugs
- intenseEffect
- focusEffect
- superJump
- swimming
- swimming
- armor-20

<Callout type="info">
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.
</Callout>

</Accordion>
</AccordionGroup>

Expand Down
20 changes: 20 additions & 0 deletions pages/it-drugs/adjustments/plants.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,26 @@ time = 3000 -- Time it takes to plant/harvest in miliseconds

---

<Callout type="warning">
If you use the ox_inventory, please use the following template to add the plants to your items.lua:
```lua
["item_name"] = {
label = "Item Label",
weight = 20,
stack = true,
close = true,
description = "Item Description",
server = {
export = "it-drugs.useSeed"
},
client = {
image = "item_name.png",
}
},
```
**Each `item_name` must be replaced with the actual item name**
</Callout>

<AccordionGroup>
<Accordion title="Plant configuration template">
```lua copy
Expand Down
43 changes: 33 additions & 10 deletions pages/it-drugs/adjustments/processing-tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ExternLink from '@components/ExternLink'
import Accordion from '@components/Accordion'
import AccordionGroup from '@components/AccordionGroup'
import { IconExternalLink } from '@tabler/icons-react'; // Importiere das Tabler-Icon
import { Callout } from '@components/Callout'

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

---

<Accordion title="Processin table configuration template">
```lua copy
['uniqe_table_id'] = {
type = 'weed',
model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
recipes = {
-- Here you can add as many recipes as you want
}
}
<Callout type="warning">
If you use the ox_inventory, please use the following template to add the tables to your items.lua:
```lua
["item_name"] = {
label = "Item Label",
weight = 1000,
stack = false,
close = true,
description = "Item Description",
server = {
export = "it-drugs.placeProcessingTable"
},
client = {
image = "item_name.png",
}
},
```
</Accordion>
**Each `item_name` must be replaced with the actual item name**
</Callout>

<AccordionGroup>
<Accordion title="Processin table configuration template">
```lua copy
['uniqe_table_id'] = {
type = 'weed',
model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
recipes = {
-- Here you can add as many recipes as you want
}
}
```
</Accordion>
</AccordionGroup>

19 changes: 18 additions & 1 deletion pages/it-drugs/common-errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,21 @@ animation = {
anim = 'player_search',
},
```
</Steps>
</Steps>

## Planting Errors

```ansi
 [ERROR] [getPlantByNetId] - Plant with netId: 0 does not exists!
```

If you get this error, it means that the script was unable to find the plant with the given netId.
In most cases, this error occurs when a player try to interact with a plant that is not managed by the script.
So in most cases you can ignore this error.

## Selling Errors
### Can't sell drugs to npc

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.
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.
Also you can enable `Config.ManualZoneChecker` in the `config.lua` file to check the zones manually.
Loading

0 comments on commit b8d81cb

Please sign in to comment.