> For the complete documentation index, see [llms.txt](https://corem.gitbook.io/corem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://corem.gitbook.io/corem/crm-core/exports.md).

# Exports

{% hint style="danger" %}
Prior experience as a developer or basic programming skills are recommended to effectively navigate this section of the documentation.
{% endhint %}

`crm-core` provides built-in **Notify** and **TextUI** exports that you can use in **any script**, not just CoreM scripts.\
These exports allow you to show interaction prompts and notifications consistently across your server.

***

### 🔸showInteract

<mark style="color:$info;">Displays an interaction prompt on the screen.</mark>

```lua
exports["crm-core"]:showInteract({
    crm_key = "E",
    crm_icon = "fa-solid fa-globe",
    crm_text = "Open my menu",
})
```

Parameters

* `crm_key` *(string)* – Key to display (e.g. "E", "F")
* `crm_icon` *(string)* – FontAwesome icon class
* `crm_text` *(string)* – Text message displayed to the player

***

### 🔸hideInteract

<mark style="color:$info;">Hides the current interaction prompt.</mark>

```lua
exports['crm-core']:hideInteract({
    crm_fade = true
})
```

Parameters

* `crm_fade` *(boolean)* – `true` = fade out animation, `false` = hide immediately

***

### 🔸notify

Displays a notification on the screen.

```lua
exports['crm-core']:notify({ 
    crm_type = "crm-primary",
    crm_msg = "Test notification",
    crm_pos = "top",
    crm_time = 5000,
})
```

Parameters

* `crm_type`*(string)* – Notification style. Options: `"crm-primary"`, `"crm-danger"`, `"crm-success"`, `"crm-warning"` &#x20;
* &#x20;`crm_msg` *(string)* – Message to display
* `crm_pos` *(string)* – Position: `"top-left"`, `"top"`, `"top-right"`, `"center-left"`, `"center"`, `"center-right"`, `"bottom-left"`, `"bottom"`, `"bottom-right"`
* `crm_time`*(number)* – Display duration in milliseconds (e.g. `5000`)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://corem.gitbook.io/corem/crm-core/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
