> For the complete documentation index, see [llms.txt](https://mole-resource.gitbook.io/mole-resource-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mole-resource.gitbook.io/mole-resource-docs/scripts/pager-system/events.md).

# Events

Net events you can trigger from your own scripts.

***

## Client events

Trigger these from the server with `TriggerClientEvent`.

### mr\_pager:showPager

Shows a message on the player's pager. Same as the `ShowPager` export.

```lua
TriggerClientEvent('mr_pager:showPager', playerId, message, duration)
```

#### **Arguments:**

* `playerId` (number) – Target player, or `-1` for all players.
* `message` (string) – Text to display.
* `duration` (number, optional) – Display time in ms.

### mr\_pager:hidePager

Hides the current message.

```lua
TriggerClientEvent('mr_pager:hidePager', playerId)
```

### mr\_pager:openCompose

Opens the compose window for the player.

```lua
TriggerClientEvent('mr_pager:openCompose', playerId)
```

### mr\_pager:notify

Shows a notification using the configured style.

```lua
TriggerClientEvent('mr_pager:notify', playerId, message, kind)
```

#### **Arguments:**

* `message` (string) – Text.
* `kind` (string, optional) – `'info'`, `'success'` or `'error'`. Default `'info'`.

***

## Server events

### mr\_pager:sendJobMessage

Sent by the client when a player submits a message. Runs `SendJobMessage` and notifies the player about the result.

```lua
TriggerServerEvent('mr_pager:sendJobMessage', text)
```

{% hint style="info" %}
Prefer the client export `SendJobMessage` – it cleans the text before sending.
{% endhint %}
