# Object Types

* This little guide is to tell you what object types you can have in the house and how they work, go to **config/\_shells.lua** and **config/\_config.lua**.

**1)** In **\_shells.lua** you can notice that every shell have an objects table and inside that table each object have a type, can be **"alarm", "safe", "item", "jewelry"**, etc.

* **item:** This object will spawn 100% of the times, in this example the **itemName** is toaster so the player will receive that item:\
  `{type = "item", prop = 'prop_toaster_02', x = -2.71, y = -0.98, z = 1.02, heading = -90.0, itemName = "toaster", label = "Grab", icon = "fa-solid fa-user-ninja"},`
* **alarm:** Spawns 100% of the times and is needed, otherwise the player won't be able to remove the house alarm and cops will be always alerted.
* **safe:** Spawns randomly, you can modify the spawn chance in **\_config.lua > Config.Lucky**
* **jewelry:** Spawns randomly, you can modify the spawn chance in **\_config.lua > Config.Lucky**
* **illegal:** Spawns randomly, you can modify the spawn chance in **\_config.lua > Config.Lucky**
* **money:** Spawns randomly, you can modify the spawn chance **in \_config.lua > Config.Lucky**

**2)** All the rewards from the **Config.Lucky** props can be found in **\_config.lua > Config.Rewards,** for example, when someone gets to crack a safe they will randomly receive one of the list reward&#x73;**:**

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FTUrk0LAl8glD9qmIpaDw%2Fimage.png?alt=media&#x26;token=03d92f5a-63b3-4bcb-8cc3-9e547a61bbbb" alt=""><figcaption></figcaption></figure>

**3)** You can add your own props and create a new item category and based on that category give certain rewards, just add them in **Config.Lucky** (if you want them to spawn randomly) and in **Config.Rewards**.

## Carry Objects

* Go to **config/objects.lua** and add your item and prop info inside the **Config.ItemsToObject** table, use the item name as table index, add the object and coords.

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FUnehB5IYl4XthDeciqgw%2Fimage.png?alt=media&#x26;token=ae0aeccd-4be4-4c2d-918b-f089c711b73a" alt=""><figcaption></figcaption></figure>
