devtoolsgg.com
Guides
GuidesFiveMFiveMGarry's ModMinecraftShared
FiveMFiveM

Server & infrastructure

  • server.cfg
  • fxmanifest
  • ACE permissions
  • Scaffolder

Frameworks

  • Jobs
  • Items

Gameplay

  • Blips
  • Markers
  • 3D text
  • DiscordDiscord logs

Security

  • Backdoor scanner

Reference lists

  • Blip sprites
  • Markers
  • Checkpoints
  • HUD colours
  • Controls
  • Text formatting
  • Vehicles
  • Ped models
  • Weapons
  • Vehicle colours
  • Radio stations
devtoolsgg.com

Generators for game server owners

Platforms

  • FiveM
  • Garry's Mod
  • Minecraft
  • Shared

Resources

  • Home
  • llms.txt

Social

  • Coming soon.

© 2026 devtoolsgg.com

Not affiliated with, endorsed by or associated with Cfx.re, Rockstar Games, Facepunch Studios, Mojang, Microsoft or Valve. All trademarks belong to their respective owners.

  1. FiveM
  2. Gameplay
  3. Discord logs
Discord

Discord Webhook Builder

Generate a ready-to-use Discord logging function with a proper embed, plus the server.cfg line that keeps the webhook URL out of your resource.

required

The Lua function this generates, e.g. sendLog.

required

Server convar holding the webhook URL. Never hardcode the URL itself.

optional

Name shown as the message author in Discord.

optional

Optional image used as the author avatar.

optional

Left border colour of the embed.

optional

Adds the current UTC time to the embed footer.

optional

Small line at the bottom of the embed.

optional

Small image in the top-right of the embed.

server.lua goes in your resource; the convar line goes in server.cfg.
1-- Discord logging for sendLog, generated with devtoolsgg.com2--3-- The webhook URL is read from a convar so it never ships inside the4-- resource. Put this in server.cfg:5--     set discord_webhook "https://discord.com/api/webhooks/..."67local WEBHOOK = GetConvar("discord_webhook", "")89---@param title string10---@param description string11local function sendLog(title, description)12    if WEBHOOK == "" then13        return print("[sendLog] convar discord_webhook is not set")14    end1516    local embed = {17        {18            title = title,19            description = description,20            color = 5793266,21            footer = { text = "devtoolsgg.com" },22            fields = {23                {24                    name = "Player",25                    value = GetPlayerName(source),26                    inline = true,27                },28                {29                    name = "Identifier",30                    value = GetPlayerIdentifierByType(source, 'license'),31                    inline = true,32                },33            },34            timestamp = os.date("!%Y-%m-%dT%H:%M:%SZ"),35        },36    }3738    PerformHttpRequest(WEBHOOK, function(status)39        if status ~= 204 and status ~= 200 then40            print(("[sendLog] discord returned %s"):format(status))41        end42    end, "POST", json.encode({43        username = "Server Logs",44        embeds = embed,45    }), { ["Content-Type"] = "application/json" })46end4748-- Example49-- sendLog("Player joined", ("%s connected"):format(GetPlayerName(source)))50
lua50 lines, 1530 characters

Related tools

BlipsMarkers3D text