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 here.

SvConfig.Webhook = 'https://YOUR_WEBHOOK'

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

SvConfig.WebhookName = 'Army-System Logs'

This is the color that comes with the webhook. More explanation here.

SvConfig.WebhookColor = 134

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

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.

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

Last updated