# Sanitation

<figure><img src="/files/pGx2rwFfYuam2nXxrC5H" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Dependencies:

Renewed Lib: <https://github.com/Renewed-Scripts/Renewed-Lib/releases/tag/v2.0.7>​

Ox Lib: <https://github.com/overextended/ox_lib/releases>
{% endhint %}

{% hint style="success" %}
Currently Supported Group Systems:

* Yseries Phones | Yflip phone
* [Ps Playergroups](https://github.com/Project-Sloth/ps-playergroups)<br>

**Vehicle I Used:** [**https://www.gta5-mods.com/vehicles/brute-refuser-tipper-based-trashmaster-add-on-replace-liveries-template**](https://www.gta5-mods.com/vehicles/brute-refuser-tipper-based-trashmaster-add-on-replace-liveries-template)
{% endhint %}

{% hint style="danger" %}
Command <mark style="color:green;">**setsanitationrep**</mark> to set a player's reputation
{% endhint %}

```lua
--server.cfg start order
ensure kevin-sanitation
```

## <mark style="color:orange;">Ox Inventory</mark>

Add the following in **ox\_inventory > data > items.lua**

<pre class="language-lua"><code class="lang-lua"><strong>["garbage_bag"] = {
</strong>	label = "Garbage Bag",
	weight = 400,
	stack = false,
	close = true,
},
</code></pre>

#### <mark style="color:orange;">Item Images</mark>

* Copy the image/s within kevin-sanitation > images
* Paste the image/s in ox\_inventory > web > images

## <mark style="color:red;">QB Inventory</mark>

Add the following to **qb-core > shared > items.lua**

{% code overflow="wrap" %}

```lua
garbage_bag                     = { name = 'garbage_bag', label = 'Garbage Bag', weight = 400, type = 'item', image = 'garbage_bag.png', unique = true, useable = true, shouldClose = true, description = '' },
```

{% endcode %}

#### <mark style="color:red;">Item Images</mark>

* Copy the image/s within kevin-sanitation > images
* Paste the images in qb inventory > html > images

## Reputation Metadata

#### <mark style="color:yellow;">Qbox</mark>

Add the following to **qbx\_core > server > player.lua** (anywhere below line 451 which should be a line <mark style="color:green;">-- Metadata</mark>)

```lua
playerData.metadata.sanitation = playerData.metadata.sanitation or 0
```

#### <mark style="color:red;">Qbcore</mark>

Add the following to **qb-core > config.lua** (within the <mark style="color:green;">metadata</mark> code block on line 62)

```lua
sanitation = 0,
```


---

# 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://kevingirardx.gitbook.io/kevin-scripts/sanitation.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.
