# items.lua

## Wo?

Zu finden unter `[QBCore-Framework]/resources/[qb]/qb-core/shared/items.lua`.

## Item Erklärung

#### Beispiel:

{% code overflow="wrap" %}

```lua
casinochips = { name = 'casinochips', label = 'Casino Chips', weight = 0, type = 'item', image = 'casinochips.png', unique = false, useable = false, shouldClose = false, description = 'Chips For Casino Gambling' },
```

{% endcode %}

#### Aufbau:

* casinochips = Die "ID" des Items. (Diese darf es nur einmal geben.)
* name = Name der in Scripts verwendet wird. (Sollte nur einmal vorkommen.)
* label = Der Item Name der z.B. im Inventar angezeigt wird.
* weight = Das Gewicht welches das Item haben soll. (Wenn nicht benötigt auf 0 setzen.)
* type = Typ des Items. (In diesem fall `item`.)
* image = Dateiname vom Bild welches das Item haben soll.
* unique = Gibt an ob das Item gestapelt werden kann. (`true` = Kann nicht gestapelt werden.)
* useable = Gibt an ob das Item genutzt werden kann. (`true` = Kann genutzt werden.)
* shouldClose = Gibt an ob das Inventar nach Gebrauch geschlossen werden soll (`true` = Ja.)
* description = Erklärung des Items im Inventar (Nicht bei jedem Inventar.)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://it.tijay006.de/qbcore-erklarungen/items.lua.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
