FiveUnityManual

Log Builder

Turn the log convars in your FiveM server.cfg into Discord categories, channels and webhooks, then paste the generated block back into the config. Log Lookup indexes those destinations automatically.

Note

Where: Dashboard โ†’ Roleplay โ†’ Log Builder

Needs: the Pro plan. Resolve with AI also needs a working AI Assistant key.

#How it works

FiveM resources log with set some_webhook "" (or ADD_HERE) lines in server.cfg. Log Builder reads those names, groups them into Discord categories, creates the channels and webhooks, and hands you a ready-to-paste config block with the webhook URLs filled in.

Values are parsed on the bot. Resolve with AI sends convar names and section headings only, never the pasted values or webhook tokens. See Privacy and your data.

#How a snippet becomes a layout

  • A comment above a group of convars names their category. Notes in brackets and anything after a colon are left out, so # 5STAR ANIMALS: per-department K9 copies (also sent to k9_logs_webhook) is the 5star Animals category, and two headings that name the same thing share one category.
  • A heading that names several things (# LB PHONE & TABLET / MDT) lets the convar names decide, unless every convar under it is a one-off script; then the heading stays their category.
  • Channel names come from the convar: sheisty_invites_log_admin is #admin. When one category holds several resources, each channel leads with its resource, so k9_logs_webhook_police is #k9-police next to #animal and #pets.
  • Two channels in one category never share a name. A clash takes the words that tell the convars apart (#crimelink-audit and #deaddrop-audit), and anything still shared is numbered.
  • Keep the quotes around names with a colon (set "5star_evidence:webhook" ""). The generated config keeps your spelling and the quotes.
  • setr lines and a # note after the value are read too. Config keys (names ending in key, token, mode and similar) and lines whose value is not a webhook are skipped, and so is a blank value with no log or webhook in its name unless it sits with real log convars or under a heading that says logs. The layout lists what was skipped.

#Set it up

  1. Open Dashboard โ†’ Roleplay โ†’ Log Builder.
  2. Paste the log and webhook convars from server.cfg into server.cfg snippet. Blank values and ADD_HERE become new webhooks. Non-log lines are ignored.
  3. Press Parse layout for the automatic grouping, or Resolve with AI when names are unusual and you want them categorised. The AI works in the background with a timer and a Stop waiting button. If it fails, or takes longer than three minutes, the automatic grouping is shown with the reason, so there is always a layout to build.
  4. Review Discord layout: each category, each channel with its convar, and whether Build creates it, reuses it, or it already has a webhook. Rename any category or channel in place; Undo renames brings back the parsed names. If you change the snippet, parse it again before building.
  5. Press Build Discord structure. Keep the page open; Discord rate-limits channel and webhook creates, so progress can pause between items. A rebuild keeps each convar's channel and its webhook URL, even after the channel was renamed in Discord, as long as it is still in a category of the same name.
  6. Copy or download Generated server.cfg (fiveunity-log-webhooks.cfg) and paste those set lines into your live server.cfg, then restart the resources that log.

If a later webhook URL is missing, the page can recover stored webhook URLs from Discord without creating extra channels.

#After it is built

  • Destinations are listed under Built logs, grouped by category, with the convar key on each row and how its layout was made: Auto layout, AI layout or Your webhook (a line that already had a URL). The channel name opens it in Discord.
  • Forget on a row stops FiveUnity tracking that convar: it no longer counts toward the 100, is no longer recovered, and its channel leaves Log Lookup. The Discord channel and webhook stay as they are. After Recover latest URLs finds webhooks that were deleted in Discord, the result offers to forget those in one go.
  • Log Lookup indexes every Log Builder destination automatically, the same way it indexes FiveM bridge log channels, so they are searchable with /logs find and Ask the logs while Log Lookup is on. Gem and cash shop webhooks such as sheisty_tebex_gems join the Tebex / gems search without a second picker.
  • Official Tebex purchase logs from Core โ†’ Tebex stay separate and still need the tebex permission to search.
Tip

Build the Discord structure before you start logging in production, so the first events already have a channel. Pair it with Log Lookup so staff can search those channels from /logs find.