> For the complete documentation index, see [llms.txt](https://gmd-scripts.gitbook.io/gmd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gmd-scripts.gitbook.io/gmd/gmd_armysystem/configuration/server-config.md).

# Server Config

File: sv\_config.lua

here you have to enter your Discord webhook where the logs will come at the end. If you don't know how to create a webhook click [<mark style="color:blue;">here</mark>](https://www.youtube.com/watch?v=fKksxz2Gdnc).

```lua
SvConfig.Webhook = 'https://YOUR_WEBHOOK'
```

This is the name of the webhook bot that is displayed at the end of the discord.

```lua
SvConfig.WebhookName = 'Army-System Logs'
```

This is the color that comes with the webhook. More explanation [<mark style="color:blue;">here</mark>](https://birdie0.github.io/discord-webhooks-guide/structure/embed/color.html).

```lua
SvConfig.WebhookColor = 134
```

This is the bottom text(footer) from the webhook.

```lua
SvConfig.WebhookFooter = 'make_armysystem'
```

Here you can insert your custom serverside nofity. Here are two templates. One for ESX 1.2 and lower and one for 1.3 and higher. You can also include your own.

```lua
SvConfig.SendNotifyServer = function (source, message)
    
    --ESX 1.3 or higher
    local xPlayer = ESX.GetPlayerFromId(source)
    xPlayer.showNotification(message)

    --ESX 1.2
    --TriggerClientEvent('esx:showNotification', source, message)
end
```
