# Exports & events

## Client side

<details>

<summary><strong>Opening the collections menu</strong></summary>

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

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

Collections menu will open for player that triggers the export/event. There's also /collections command

</details>

## Server side

<details>

<summary><strong>Opening the collections menu for given player</strong></summary>

```lua
TriggerEvent('pc_skills:server:openCollections', player)
```

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

• player - playerId -  id of the player you want to open menu for

Collections menu will open for player with given id.

</details>
