# Setup and Items

This page covers the minimum setup required to get the script running correctly: dependencies, `server.cfg` start order, database import, and required items.

## Required Dependencies

* [oxmysql](https://github.com/overextended/oxmysql/releases)
* [ox\_lib](https://github.com/overextended/ox_lib/releases)
* `es_extended`, `qb-core`, or `qbx_core`

## Recommended server.cfg Start Order

```lua
start oxmysql
start ox_lib
start framework -- es_extended, qb-core, or qbx_core
-- other resources
start 0r-garbage
```

## Database

Import this file manually:

```lua
0r-garbage/database.sql
```

The script creates this table:

```sql
CREATE TABLE IF NOT EXISTS `0resmon_garbage_players` (...);
```

## Required Items

If you use tablet access, add this item:

* `garbage_tablet`

If you keep trash bag reward drops enabled, make sure these reward items also exist:

* `metalscrap`
* `copper`
* `plastic`
* `aluminum`
* `glass`

## OX Inventory Example

{% tabs fullWidth="false" %}
{% tab title="items.lua" %}

```lua
["garbage_tablet"] = { label = "Garbage Tablet", weight = 100, stack = false },
```

{% endtab %}
{% endtabs %}

## QB Core Example

{% tabs fullWidth="false" %}
{% tab title="shared/items.lua" %}

```lua
garbage_tablet = { name = "garbage_tablet", label = "Garbage Tablet", weight = 100, type = "item", image = "garbage_tablet.png", unique = false, useable = true, shouldClose = false },
```

{% endtab %}
{% endtabs %}

## Final Checklist

After setup, verify these points:

* SQL was imported successfully
* `ox_lib` and `oxmysql` start without errors
* `0r-garbage` starts without errors
* `garbage_tablet` exists if item access is enabled
* Reward items exist if broken trash bag rewards are enabled


---

# 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://docs.0resmon.org/0resmon/0r-resources/0r-garbage-v1/setup-and-items.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.
