> For the complete documentation index, see [llms.txt](https://docs.poisoncode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poisoncode.com/group-1/copy-of-pc_collections/events-exports-and-commands.md).

# Events, exports & commands

## **Client side**

### Events

<details>

<summary>Opening the collections menu</summary>

```lua
TriggerEvent('pc_collections:client:openCollections')
```

{% hint style="info" %}
Opens the collection menu for the player that triggered the event.
{% endhint %}

</details>

### Exports

<details>

<summary>Opening the collections menu</summary>

```lua
exports.pc_collections:openCollections()
```

{% hint style="info" %}
Opens the collection menu for the player that triggered the export.
{% endhint %}

</details>

### Commands

<details>

<summary>Opening the collections menu</summary>

```lua
/collections
```

{% hint style="info" %}
Opens the collection menu for the player that triggered the command.
{% endhint %}

{% hint style="warning" %}
This command is avaiable for everyone by default.
{% endhint %}

</details>

***

## **Server side**

### Events

<details>

<summary>Opening the collections menu</summary>

```lua
TriggerEvent('pc_skills:server:openCollections', target)
or
TriggerClientEvent('pc_collections:client:openCollections', target)
```

* **target** - player server id - id of the player you want to open menu for

{% hint style="info" %}
Opens the menu for the player with specified id
{% endhint %}

</details>

### Exports

<details>

<summary>Opening the collections menu</summary>

```lua
exports.pc_collections:openCollections(target)
```

* **target** - player server id - id of the player you want to open menu for

{% hint style="info" %}
Opens the menu for the player with specified id
{% endhint %}

</details>
