I have been trying to solve it but I don’t know what to do next.
Nothing sends to discord I have the real webhook there and no error or anything on console.
client.lua
function customLog(webhook, color, title, message)
local log = {
["color"] = color,
["title"] = title,
["description"] = message
}
print("Client has responded with ")
print(webhook)
print(log["color"])
print(log["title"])
print(log["description"])
TriggerServerEvent('core-log:Loki', webhook, log) -- Send to server webhook and log information
end
RegisterNetEvent('core-log:Loki')
AddEventHandler('core-log:Loki', function(webhook, color, title, message)
customLog(webhook, color, title, message)
end)
RegisterCommand('autokauppa', function(source, args)
exports['core-log']:customLog('WEBHOOK', '16711680', 'Pelaaja', 'Hankki uuden ajoneuvon. Rekisterillä: LE9E-200')
end, false)
It gives same results its not the export function
because the idea of that is to bring the data to server side and they are there succesfully like you can see on the picture.