1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/lc_utils/functions/server/webhook.lua
2025-06-07 08:51:21 +02:00

7 lines
No EOL
284 B
Lua

Utils.Webhook = {}
function Utils.Webhook.sendWebhookMessage(webhook,message)
if webhook ~= nil and webhook ~= "" then
PerformHttpRequest(webhook, function(err, text, headers) end, 'POST', json.encode({content = message}), { ['Content-Type'] = 'application/json' })
end
end