> For the complete documentation index, see [llms.txt](https://none-fivem.gitbook.io/nonem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://none-fivem.gitbook.io/nonem/resources/no-newspaper/exports-and-events.md).

# Exports & Events

## Server Exports

***

<details>

<summary>RegisterPaper</summary>

Registers newspaper.

### Parameters

* context: [PaperContext](/nonem/resources/no-newspaper/configuration/registering-papers.md#papercontext)

</details>

<details>

<summary>Publish</summary>

Publishes article on given paper id.

### Parameters

* paperId: number
* context: Article Context

</details>

<details>

<summary>PublishAll</summary>

Publishes article in all papers.

### Parameters

* context: Article Context

</details>

<details>

<summary>GetArticles</summary>

Returns articles by date on given paper id.

### Parameters

* paperId: number

### Returns

* articles: Article Context\[]

</details>

<details>

<summary>GetAllArticles</summary>

Returns all articles on given paper id.

### Parameters

* paperId: number

### Returns

* articles: Article Context\[]

</details>
