> For the complete documentation index, see [llms.txt](https://docs.redutzu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.redutzu.com/resources/redutzu-mdt/exports-events/server-exports/announcements.md).

# Announcements&#x20;

Here, you'll find key exports for managing weapons. These exports allow you to register and update weapons as needed.

***

## Type

```typescript
type Announcement = {
    id: number,
    title: string,
    content: string, // stringified JSON
    pinned: boolean,
    author: {
        identifier: string,
        name: string
    }
}
```

## Exports

### Search for an Announcement

```lua
exports['redutzu-mdt']:SearchAnnouncement(id: number) // AnnouncementType | null
```

### Create a new Announcement

```lua
exports['redutzu-mdt']:CreateAnnouncement({ title = 'Title', content = '[{..}]' }, authorSource) -- number (id)
```

### Update a Announcement

```lua
-- It returns a boolean (if it was successfully updated)
exports['redutzu-mdt']:UpdateAnnouncement(id, { title = 'New title' }) -- boolean
```

### Delete an Announcement&#x20;

```lua
-- It returns a boolean (if it was successfully deleted)
exports['redutzu-mdt']:DeleteAnnouncement(id: number) // boolean
```
