> For the complete documentation index, see [llms.txt](https://docs.moxha.dev/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moxha.dev/documentation/paid-scripts/motels/introduction/share-key.md).

# Share Key

About share a room

{% hint style="warning" %}
The room share is only for inventory without metadata. If you have the metadata just share your meta key.
{% endhint %}

{% hint style="info" %}
Key can be shared with nearby players. Command is "shareMotelKey" \[configurable]
{% endhint %}

{% hint style="info" %}

### You can configure the maximum number of people it can be shared with.

{% endhint %}

> mx-motels > shared > config.lua

```
roomSharingMaximum = 3,         -- Maximum room sharing
```

<div><figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FpMRShZJo10xfd3qkfM0Y%2FScreenshot_1.png?alt=media&amp;token=ecfd16c4-0c82-49b1-9ed7-b3ab95285102" alt=""><figcaption></figcaption></figure> <figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2F46EjMCvUMhrqPSTIkF47%2FScreenshot_2.png?alt=media&amp;token=799d8281-16b2-4793-bf5c-d6dd90983e93" alt=""><figcaption></figcaption></figure></div>

<div align="center"><figure><img src="https://2054689962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jFzR30XlKSdobBggZNg%2Fuploads%2FL9sqWwbGT6gqc9tYsSVf%2FScreenshot_4.png?alt=media&amp;token=1b91b959-1549-48fd-a985-0a144533b91f" alt=""><figcaption></figcaption></figure></div>
