> For the complete documentation index, see [llms.txt](https://jixelpatterns.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jixelpatterns.gitbook.io/docs/troubleshooting/faq.md).

# FAQ

<details>

<summary>How do I get Client and Server logs</summary>

{% hint style="warning" %}
When opening a ticket, it's **not** normal behaviour to complain or argue when we ask for these.
{% endhint %}

### Both of these files tell us more about whats happening in your server scripts than you think.

It can tell us if theres issues with files loading, if theres a server load error issue, if you havent added files correctly, whatever, it helps.<br>

{% hint style="info" %}
Turning on debug mode in the scripts having issues, also helps ALOT
{% endhint %}

#### To get a Client Log, you need to:

* Press F8 after connecting to a server
* Press "Open Log" on the bottom right of the display that pops up
* This is the FiveM Client Log

<figure><img src="https://2579759843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfxDadT7FSSj4RnXqjJP%2Fuploads%2FWh1rA7ZzRUHZYEUtwqgQ%2Fimage.png?alt=media&amp;token=a801edf7-464b-4a33-a724-c85b9fa631a5" alt=""><figcaption></figcaption></figure>

#### To give a Server Log, you need to:

* Access your txadmin server panel
* Press the Live Console button on the left of the screen
* Press "Download" at the bottom right of the screen

<img src="https://2579759843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfxDadT7FSSj4RnXqjJP%2Fuploads%2FgvZTmwztZsGVT874hR9H%2Fimage.png?alt=media&amp;token=e7f91a0d-d15a-4d39-92c7-0e4826f774bc" alt="" data-size="original">

</details>

***

<details>

<summary>Shop Prices</summary>

"How do I make shop items cost money?"\
"Why is everything free when buying from a shop?"\
\
This is because I left it for users to decide their economy based prices.

```lua
{ name = "nos", price = 0, amount = 50, info = {}, type = "item", },
```

The price variable here is **0**, making it "free"\
\
Setting this price to **anything** else will make it cost money.

</details>

<details>

<summary>Stash Crafting</summary>

Most of my scripts, (where relevant) have the ability to craft from a stash

This means that a public/job locked stash can be used to hold the ingredients for crafting, then users can craft new items as if it were in their pockets/inventory

#### The boring stuff:

When opening crafting menus in my scripts, if stash crafting is enabled, it will automatically attempt to get the data about what items are in the specified stashes, then check that against the crafting recipes being loaded

***

### The FAQ

#### Big Red ❌

Many people get confused by this and the big red ❌ that appears is telling you it can't find the items, they first make a ticket saying its broken, but in fact its checking the stash, NOT their players inventories

TLDR:

Big red ❌ means its can't find the items, this most likely means they aren't in the stash.

***

"How do I enable Stash Crafting?"\
In my restaurant scripts, in every location file there is a commented out line that says `StashCraft`

This also will have the name of one of the stashes in the location file.

If you "uncomment" this line, this will enable stashcrafting and specify THAT stash as the one to be used when crafting\
\
In `jim-mechanic`, the stashcrafting is enabled by default. The default settings make it so that every stash in that location, will be checked for crafting items

</details>

<details>

<summary>How do I create a discord webhook?</summary>

**To create a discord webhook follow the following steps:**

* Go to your discord you wish to recieve the messages
* Click the gear icon (Edit Channel) of the channel you want to post to.
* Click Webhooks in the left menu.
* Click the Create Webhook button.
* Enter a Name of your choice.
* Click the Copy button of the Webhook URL.
* Click the Save button.
* Paste the Webhook URL in the script you want to use it.

</details>
