Skip to content

Commit

Permalink
Update it-crafting entry
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRoundJonU committed Jan 21, 2025
1 parent b7f7bd4 commit 9fbca33
Show file tree
Hide file tree
Showing 9 changed files with 479 additions and 843 deletions.
24 changes: 21 additions & 3 deletions pages/it-crafting/adjustments/crafting-points.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,23 @@ This is the name of the item to which this configuration is bound. The item can
---

```lua
zone = vector3(2.0, 1.0, 2.0),
target = {
size = vector3(3.5, 1.0, 1.0),
rotation = 0.0,
drawSprite = true,
interactDistance = 1.5,
},
```
As soon as the player places the table, the script will create a zone around the table. The zone is used to interact with the table.
The zone has to be defined as a vector3. The first value is the width, the second value is the length, and the third value is the height of the zone.
Here you can change some settings for the target zone.
- `size` * - The size of the target zone. The first value is the width, the second value is the length, and the third value is the height of the zone.
- `rotation` * - The rotation of the target zone. The value is in degrees. If you dont want to use this you can remove it.
- `drawSprite` * - If set to `true`, a sprite will be displayed at the target zone. If set to `false`, no sprite will be displayed.
- `interactDistance` * - The distance at which the player can interact with the table.

`*` All these values are optional and can be removed if you dont want to use them. But please do not remove the target table.

---

```lua
model = 'v_res_tre_table2'
Expand Down Expand Up @@ -106,7 +119,12 @@ Each table can theoretically have an infinite number of recipes, how exactly a r
<Accordion title="Crafting point configuration template">
```lua copy
['simple_crafting_point'] = {
zone = vector3(2.0, 1.0, 2.0),
target = {
size = vector3(1.0, 1.0, 1.0),
rotation = 0.0,
drawSprite = true,
interactDistance = 1.5,
},
label = 'Weed Processing Table', -- Label for the table
model = 'v_res_tre_table2', -- Exanples: freeze_it-scripts_empty_table, freeze_it-scripts_weed_table, freeze_it-scripts_coke_table, freeze_it-scripts_meth_table
restricCrafting = {
Expand Down
24 changes: 21 additions & 3 deletions pages/it-crafting/adjustments/crafting-tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,23 @@ This is the name of the item to which this configuration is bound. The item can
---

```lua
zone = vector3(2.0, 1.0, 2.0),
target = {
size = vector3(3.5, 1.0, 1.0),
rotation = 0.0,
drawSprite = true,
interactDistance = 1.5,
},
```
As soon as the player places the table, the script will create a zone around the table. The zone is used to interact with the table.
The zone has to be defined as a vector3. The first value is the width, the second value is the length, and the third value is the height of the zone.
Here you can change some settings for the target zone.
- `size` * - The size of the target zone. The first value is the width, the second value is the length, and the third value is the height of the zone.
- `rotation` * - The rotation of the target zone. The value is in degrees. If you dont want to use this you can remove it.
- `drawSprite` * - If set to `true`, a sprite will be displayed at the target zone. If set to `false`, no sprite will be displayed.
- `interactDistance` * - The distance at which the player can interact with the table.

`*` All these values are optional and can be removed if you dont want to use them. But please do not remove the target table.

---

```lua
model = 'v_res_tre_table2'
Expand Down Expand Up @@ -130,7 +143,12 @@ If you use the ox_inventory, please use the following template to add the tables
<Accordion title="Processin table configuration template">
```lua copy
['simple_crafting_table'] = {
zone = vector3(2.0, 1.0, 2.0),
target = {
size = vector3(1.0, 1.0, 1.0),
rotation = 0.0,
drawSprite = true,
interactDistance = 1.5,
},
label = 'Weed Processing Table', -- Label for the table
model = 'v_res_tre_table2', -- Exanples: freeze_it-scripts_empty_table, freeze_it-scripts_weed_table, freeze_it-scripts_coke_table, freeze_it-scripts_meth_table
restricCrafting = {
Expand Down
8 changes: 8 additions & 0 deletions pages/it-crafting/adjustments/zones.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: Here, it is possible to create zones that can have an effect on cer
import { Callout } from '@components/Callout'
import Accordion from '@components/Accordion'
import AccordionGroup from '@components/AccordionGroup'
import ExternLink from '@components/ExternLink'

# 🗺️・Zones
First, let's take a look at zone management.
Expand Down Expand Up @@ -88,6 +89,13 @@ The blip is always displayed in the middle of the zone.

---

If you want to create the zones more easily please take a look at the following guide:
<ExternLink
href="https://docs.it-scripts.com/it-crafting/adjustments/easy-zone-creation">
</ExternLink>

---

<AccordionGroup>
<Accordion title="Zone configuration template">
```lua copy
Expand Down
13 changes: 13 additions & 0 deletions pages/it-crafting/common-errors.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: it-drugs - Common Errors
description: Common errors and their solutions
---
import { Callout } from '@components/Callout'
import { Steps, Cards, Card } from 'nextra/components'
import ExternLink from '@components/ExternLink'
import { IconBrandGithub, IconBrandDiscord, IconCode, IconTag } from '@tabler/icons-react';

# Common Errors
Here you will find common errors and their solutions. If you have any further questions, please feel free to ask in the [Discord](https://discord.it-scripts.com).

**Seems like there are no errors yet. 🎉**
Loading

0 comments on commit 9fbca33

Please sign in to comment.