Tips2 min read
FiveM logs — how to replace your Discord webhooks
Your scripts' logs, stored and searchable, without changing a line: swap the webhook link or call the resource's export.
fiveX team
Updated

A Discord log channel works until the day someone needs to find what happened three days ago. Then the endless scrolling begins. FiveDash logs receive the same messages and keep everything in one place you can search.
Ready-made script: swap the link
You don't need to change your scripts. Create a log in FiveDash and replace the Discord webhook link with the log's link. The player's character ID, name and identifiers go into each log on their own.
Your own script: one line of Lua
If the script is yours, call the resource's export on the server side. The key (mortes, in the example) is the log's key in FiveDash:
exports.fivedash:log("mortes", {
title = "Death recorded",
players = { { source = killer, label = "Killer" }, { source = victim, label = "Victim" } },
fields = { { "Weapon", weapon } },
})
How long logs are kept
| Plan | Kept for | Logs per month |
|---|---|---|
| Plus | 7 days | 1 million |
| Pro | 30 days | 10 million |
| Ultra | 90 days | 50 million |
If the connection to the panel drops, the resource keeps up to 20,000 logs in its queue and sends them all once it's back.
Everyone sees only what they're allowed to
Grant access log by log: the police see the robberies, the city's leadership sees the bank, and only those who configure a log can touch its key and webhook link.
See everything that comes with logs on the Logs module page.
How to check the migration
Create the log, copy its link and replace the webhook in the script. Trigger a test action you know, open that log in the panel and check the event and its fields. Then use the filters to find that same entry.
If the event doesn't show up, check the log's key and the link you copied. For calls through the resource, check the connection status and run fivedash logs in the console to inspect the queue and the last error.
The webhook migration guide explains how to swap the link. For your own scripts, see the exports and events and the logs API reference.


