# Sanitation

<figure><img src="https://686536647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvXGRk0kmhwggVh0ryaOs%2Fuploads%2F82nZLnThnCXeXR5XfG9F%2Fsanitation.jpg?alt=media&#x26;token=f2b27f6a-5979-43ce-be64-37b07da366dd" 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,
```
