Skip to content

Commit 9fbca33

Browse files
committed
Update it-crafting entry
1 parent b7f7bd4 commit 9fbca33

9 files changed

+479
-843
lines changed

pages/it-crafting/adjustments/crafting-points.mdx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,23 @@ This is the name of the item to which this configuration is bound. The item can
4848
---
4949

5050
```lua
51-
zone = vector3(2.0, 1.0, 2.0),
51+
target = {
52+
size = vector3(3.5, 1.0, 1.0),
53+
rotation = 0.0,
54+
drawSprite = true,
55+
interactDistance = 1.5,
56+
},
5257
```
5358
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.
54-
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.
59+
Here you can change some settings for the target zone.
60+
- `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.
61+
- `rotation` * - The rotation of the target zone. The value is in degrees. If you dont want to use this you can remove it.
62+
- `drawSprite` * - If set to `true`, a sprite will be displayed at the target zone. If set to `false`, no sprite will be displayed.
63+
- `interactDistance` * - The distance at which the player can interact with the table.
64+
65+
`*` All these values are optional and can be removed if you dont want to use them. But please do not remove the target table.
66+
67+
---
5568

5669
```lua
5770
model = 'v_res_tre_table2'
@@ -106,7 +119,12 @@ Each table can theoretically have an infinite number of recipes, how exactly a r
106119
<Accordion title="Crafting point configuration template">
107120
```lua copy
108121
['simple_crafting_point'] = {
109-
zone = vector3(2.0, 1.0, 2.0),
122+
target = {
123+
size = vector3(1.0, 1.0, 1.0),
124+
rotation = 0.0,
125+
drawSprite = true,
126+
interactDistance = 1.5,
127+
},
110128
label = 'Weed Processing Table', -- Label for the table
111129
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
112130
restricCrafting = {

pages/it-crafting/adjustments/crafting-tables.mdx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,23 @@ This is the name of the item to which this configuration is bound. The item can
4848
---
4949

5050
```lua
51-
zone = vector3(2.0, 1.0, 2.0),
51+
target = {
52+
size = vector3(3.5, 1.0, 1.0),
53+
rotation = 0.0,
54+
drawSprite = true,
55+
interactDistance = 1.5,
56+
},
5257
```
5358
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.
54-
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.
59+
Here you can change some settings for the target zone.
60+
- `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.
61+
- `rotation` * - The rotation of the target zone. The value is in degrees. If you dont want to use this you can remove it.
62+
- `drawSprite` * - If set to `true`, a sprite will be displayed at the target zone. If set to `false`, no sprite will be displayed.
63+
- `interactDistance` * - The distance at which the player can interact with the table.
64+
65+
`*` All these values are optional and can be removed if you dont want to use them. But please do not remove the target table.
66+
67+
---
5568

5669
```lua
5770
model = 'v_res_tre_table2'
@@ -130,7 +143,12 @@ If you use the ox_inventory, please use the following template to add the tables
130143
<Accordion title="Processin table configuration template">
131144
```lua copy
132145
['simple_crafting_table'] = {
133-
zone = vector3(2.0, 1.0, 2.0),
146+
target = {
147+
size = vector3(1.0, 1.0, 1.0),
148+
rotation = 0.0,
149+
drawSprite = true,
150+
interactDistance = 1.5,
151+
},
134152
label = 'Weed Processing Table', -- Label for the table
135153
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
136154
restricCrafting = {

pages/it-crafting/adjustments/zones.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: Here, it is possible to create zones that can have an effect on cer
66
import { Callout } from '@components/Callout'
77
import Accordion from '@components/Accordion'
88
import AccordionGroup from '@components/AccordionGroup'
9+
import ExternLink from '@components/ExternLink'
910

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

8990
---
9091

92+
If you want to create the zones more easily please take a look at the following guide:
93+
<ExternLink
94+
href="https://docs.it-scripts.com/it-crafting/adjustments/easy-zone-creation">
95+
</ExternLink>
96+
97+
---
98+
9199
<AccordionGroup>
92100
<Accordion title="Zone configuration template">
93101
```lua copy

pages/it-crafting/common-errors.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: it-drugs - Common Errors
3+
description: Common errors and their solutions
4+
---
5+
import { Callout } from '@components/Callout'
6+
import { Steps, Cards, Card } from 'nextra/components'
7+
import ExternLink from '@components/ExternLink'
8+
import { IconBrandGithub, IconBrandDiscord, IconCode, IconTag } from '@tabler/icons-react';
9+
10+
# Common Errors
11+
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).
12+
13+
**Seems like there are no errors yet. 🎉**

0 commit comments

Comments
 (0)