Hello everyone, today I am releasing this free script of mine, which is WX Logs. It’s a simple server-side discord logging system which supports multiple webhooks and can be used with only one export!
Examples
-- SERVER SIDE
local data = {
color = 16737095,
title = "Death",
fields = {
{
["name"]= "Player Name",
["value"]= playerName,
["inline"] = true
},
{
["name"]= "Coords",
["value"]= coords,
["inline"] = true
},
{
["name"]= "Death Cause",
["value"]= reason,
["inline"] = true
},
},
}
exports['wx_logs']:SendLog("deaths" --[[This webhook name must exist in the config! (wx.Webhooks)]],data)
-- SERVER SIDE
local data = {
color = 16737095,
title = "Hello, world!",
description = "Test webhook message???",
}
exports['wx_logs']:SendLog("test",data)
Guides
How to add images?
exports['wx_logs']:SendLog("death",{
username = "Image Tutorial",
color = 16737095,
title = "This is how you add an image!",
image = {
{
["url"]= "image url",
},
})
Where to get color codes?
Use https://www.spycolor.com/, search for a color and then copy it’s decimal value
For all webhook options, check the source code or these docs
Screenshots
exports['wx_logs']:SendLog('test',{
title = "Hello!",
description = "This is a simple log system!",
})