> For the complete documentation index, see [llms.txt](https://docs.tzmc.dev/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tzmc.dev/docs/standalone/readme/config.md).

# Config

```lua
TZMCAnnouncementConfig = {}

-- AUDIO --
TZMCAnnouncementConfig.UseSound = true
TZMCAnnouncementConfig.AudioName = "ROUND_ENDING_STINGER_CUSTOM"
TZMCAnnouncementConfig.AudioRefrence = "CELEBRATION_SOUNDSET"

-- MESSAGE --
TZMCAnnouncementConfig.TitleName = "Server Announcement"
TZMCAnnouncementConfig.ShowTime = 10
TZMCAnnouncementConfig.ErrorTitle = 'Error'
TZMCAnnouncementConfig.ErrorTextPermissions = "You don't have enough permissions to execute this command."
TZMCAnnouncementConfig.ErrorTextCharacterLimit = "Maximum characters reached for this style"

-- COMMAND --
TZMCAnnouncementConfig.Command = "announcement"
TZMCAnnouncementConfig.CommandHelpText = "Make a server announcement"

-- DISCORD --
TZMCAnnouncementConfig.DiscordWebhook = "https://discord.com/api/webhooks/983030476438655036/hR3kXzd8iZhkeR3bRJb16AGXo7rfUrY9mZ6mlVdkhe4lqo54Fq12ZVKAT3nZKY-YazoQ"

TZMCAnnouncementConfig.EmbedColor = 0xff8a00
TZMCAnnouncementConfig.DiscordUsername = "Server Announcement"
TZMCAnnouncementConfig.EmbedTitle = "Server Announcement"
TZMCAnnouncementConfig.DiscordAvatar = "https://cdn.betterttv.net/emote/6085085039b5010444d05cf3/3x"

-- PERMISSIONS --
TZMCAnnouncementConfig.UsingQBCore = true
TZMCAnnouncementConfig.QBCorePermission = 'admin'
TZMCAnnouncementConfig.AloudLicences = {
    'license:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', -- Enter the licences of users that should have access to this command. This will be ignored if you're using QBCore.
    'xbl:XXXXXXXXXXXXXXXX',
    'live:XXXXXXXXXXXXXXX',
    'discord:XXXXXXXXXXXXXXXXX',
    'fivem:XXXXXX',
    'license2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
}
TZMCAnnouncementConfig.DebugMode = false -- If this is set to true, the licence of the user that is trying to execute the command will show within the server console.
```


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.tzmc.dev/docs/standalone/readme/config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
