> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/fps-engine-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/fps-engine-documentation/content/03.-content/03.8-extra/lootbox.md).

# Lootbox

<figure><img src="https://2716441118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkdlNMXOYYmupb4VpBGHT%2Fuploads%2Fs1SlNBmaYnCJwhpKCtkT%2Fimage.png?alt=media&amp;token=263d99db-d221-45bf-a07c-5ddd667cd206" alt="" width="277"><figcaption></figcaption></figure>

Container that holds randomized rewards, such as weapons, power-ups, coins and more. Inherits from [Interactable](/fps-engine-documentation/content/03.-content/03.5-pick-up-system/interactable.md) and can be Free or Paid. Check [CoinManager ](/fps-engine-documentation/content/03.-content/03.09-managers/coinmanager.md)for more info.

{% hint style="info" %}
You can find a Lootbox Prefab uner Cowsins/Prefabs/DragAndDropExtras
{% endhint %}

* <mark style="color:purple;">loot</mark>: Array that contains all the possible loot to be instantiated. On interact, a random item will be selected.
* <mark style="color:purple;">price</mark>: Price to unlock the Lootbox. Set to 0 for it to be Free.
* <mark style="color:purple;">delayToReceiveLoot</mark>: Specifies the time interval between opening the lootbox and receiving the loot.
* <mark style="color:purple;">spawnDistance</mark>: Distance to spawn the loot from the Lootbox Position
* <mark style="color:purple;">directionDependsOnPlayerPosition</mark>: If true, the loot will be instantiated in fron of the player always. Recommended to be true.
