> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_casino/features/editor/decorations.md).

# Decorations

Managing Props and Decorations in the Casino Editor

The Decorations editor page places props around the casino. A decoration can be pure scenery (a Christmas tree, a chip tray, a fridge) or it can be interactable, giving players an item on a cooldown.

### Editor Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Choose a display name for the prop</td></tr><tr><td>Model</td><td>Pick the prop model from <code>DecorationModels</code></td></tr><tr><td>Interactable</td><td>Whether players can interact with this prop at all</td></tr><tr><td>Interaction Text</td><td>The prompt shown when a player is near it</td></tr><tr><td>Interaction Cooldown</td><td>How long before the same player can interact again, in milliseconds</td></tr><tr><td>Interaction Reward Item</td><td>The inventory item handed out on interaction</td></tr><tr><td>Reward Amount (Min)</td><td>Lowest amount given</td></tr><tr><td>Reward Amount (Max)</td><td>Highest amount given</td></tr><tr><td>VIP Only</td><td>Restrict the interaction to VIP players</td></tr><tr><td>Proximity</td><td>Set interaction/subscription distance in meters</td></tr><tr><td>Load Only Inside Interiors</td><td>Load this prop only while players are in interiors</td></tr><tr><td>Add Prop</td><td>Create a new prop near the current player position</td></tr><tr><td>Delete</td><td>Delete the selected prop</td></tr></tbody></table>

Leave Interactable off for pure scenery. The reward fields are then irrelevant.

## Interaction rewards

An interactable decoration hands out a random amount between Min and Max of the configured item, then goes on cooldown for that player.

```lua
["xmastree"] = {
    name = "Xmas Tree",
    coords = vec3(935.039978, 31.034811, 70.833626),
    rotation = vector3(0.0, 0.0, 45.0),
    model = "ch_prop_ch_diamond_xmastree",
    interactable = true,
    interactionCooldown = 60 * 1000, -- 1 minute
    interactionText = "Press E to get a little xmas gift.",
    vip = false,
    proximity = 5.0,
    loadInInterior = true,
    rewardItem = "casino_xmasgift",
    rewardAmount = 1
}
```

## DecorationModels

Selectable prop models are defined in `configs/interior/decorations.lua` in `DecorationModels`. Only models in this list can be picked in the editor.

```lua
DecorationModels = {
    "ba_prop_battle_bar_fridge_02",
    "ba_prop_battle_bar_fridge_01",
    
    "sf_prop_v_43_safe_s_gd_01a",
    "vw_prop_casino_chip_tray_01",
    "vw_prop_casino_chip_tray_02",
    "ch_prop_ch_diamond_xmastree",
    "ch_prop_ch_fuse_box_01a",
    "prop_cs_bin_03",
    "ADD_YOUR_MODEL_HERE",
}
```
