Logs15 min
Replace your Discord webhooks with FiveDash logs
Your city's script logs arriving in FiveDash, with search and player filters, without rewriting a single script.
Logs15 min
Your city's script logs arriving in FiveDash, with search and player filters, without rewriting a single script.
Most scripts send logs to a Discord webhook. Each FiveDash log’s link accepts the same message Discord accepts, so you just swap one link for the other in the script’s config. In this tutorial you create the logs, swap the links, get the first log and find out who did what. It’s for whoever handles the city’s scripts.
Open Logs in the sidebar. The first time, Bring your logs to FiveDash shows up.
In Which logs do your scripts send?, tick the kinds the city uses, like Deaths and combat, Inventory and chests or Money and bank. For a custom log, type its name in Log name, under Other logs (e.g. “Store robbery”), and click Add.
Click Create the link (with more than one log, the button shows the number, like Create 4 links).
Pick the Discord webhook tab and copy each log’s link. Then, in each script:
config.lua, shared.lua…) and look for discord.com/api/webhooks.ensure script-name.Before and after:
-- before
Config.Webhook = "https://discord.com/api/webhooks/1234…/aBcD…"
-- after
Config.Webhook = "https://logs.fivex.sh/api/logs/<log-id>/<token>"
When you’re done, click I’ve swapped them.
Join the city and do something a script records, or click Send a test log. When the log arrives, it shows as the script sent it and what FiveDash read from it: character ID, Discord account, identifiers and coordinates.
Click Turn on logs (the button only unlocks after the first log has arrived) and then Go to the logs.
Scripts left? Make a log for each and get its link:
Swap the link in the script and run ensure script-name. To check, do the action in the game or click Send test in How to send: the log shows up on the log’s page right away.
Go to Logs → All logs:
username) or Player. In Player, type the ID, Discord or license and press Enter.The search, filters and period live in the page’s address: copy it and send it to someone on the staff, who opens the same search.
If you can edit the script, the fivedash resource’s export is faster, uses no link and already reads the player’s character ID. In How to send, click Use export and then Copy AI prompt: paste it into an AI along with the script, and it replaces the PerformHttpRequest with the export call.
Or write the call by hand, on the script’s server side:
local function fivedashLog(data)
if GetResourceState("fivedash") ~= "started" then return end
exports.fivedash:log("mortes", data)
end
fivedashLog({ title = "Death recorded", player = source })
mortes is the log’s Key in the dashboard. The function checks that fivedash is running, so the script doesn’t break if it’s stopped.
| Check | How |
|---|---|
| The whole link was pasted | Copy it again from How to send |
| The script was restarted | Run ensure script-name in the console |
| The link isn’t from before a Generate new link | An old link gets 401. Copy the new one and swap it in the script |
| Which log is quiet | In Logs → Overview, the Silent block shows logs that received nothing in the last 24 h |