Skip to content

Commit

Permalink
Updated it-crafting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRoundJonU committed Jan 29, 2025
1 parent b93bc0f commit b392e36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pages/it-crafting/adjustments/crafting-points.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ Here you can change some settings for the target zone.

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

<Callout type="info">
If you are using a model the script will automatically set the size and rotation of the target zone.
So you dont need to set the size and rotation if you are using a model. You can just keep the default values.

In some cases the rotation of the target zone is not correct. In this case you can set the rotation manually.
</Callout>
---

```lua
Expand Down
11 changes: 9 additions & 2 deletions pages/it-crafting/adjustments/crafting-tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ Here you can change some settings for the target zone.

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

<Callout type="info">
If you are using a model the script will automatically set the size and rotation of the target zone.
So you dont need to set the size and rotation if you are using a model. You can just keep the default values.

In some cases the rotation of the target zone is not correct. In this case you can set the rotation manually.
</Callout>

---

```lua
Expand Down Expand Up @@ -129,7 +136,7 @@ If you use the ox_inventory, please use the following template to add the tables
close = true,
description = "Item Description",
server = {
export = "it-drugs.placeProcessingTable"
export = "it-drugs.placeCraftingTable",
},
client = {
image = "item_name.png",
Expand All @@ -143,13 +150,13 @@ 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'] = {
label = 'Simple Crafting Table', -- Label for the table
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 = {
['onlyOnePlayer'] = true, -- Only one player can use the table at a time
Expand Down
4 changes: 2 additions & 2 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ function useHead() {
<meta property="og:url" content={url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content="https://i.imgur.com/RMGXDiN.png" />
<meta property="og:image" content="https://i.imgur.com/OenvzZz.png" />

<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={url} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content="https://i.imgur.com/RMGXDiN.png" />
<meta property="twitter:image" content="https://i.imgur.com/OenvzZz.png" />
</>
);
}
Expand Down

0 comments on commit b392e36

Please sign in to comment.