Main/resources/[carscripts]/lc_utils/functions/server/webhook.lua

7 lines
284 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
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