Webhook Protection
How to implement it in your script:
Example usage:
if bounty > 45000 then
-- Send high bounty player to webhook.
LRM_SEND_WEBHOOK( "https://discord.com/api/webhooks/......", {
username = "Cat Delivery",
embeds = {
{
title = "High bounty user detected!",
description = "Bounty: " .. LRM_SANITIZE(bounty, "[0-9]{1,6}"),
color = 16711680, -- red
fields = {
{
name = "Player Name:",
value = LRM_SANITIZE(plrName, "[a-zA-Z0-9_]{3,40}"),
inline = true
},
{
name = "Caught by:",
value = "<@%DISCORD_ID%>", -- Server-side variable, see below
inline = true
}
}
}
}
});
print("Webhook sent!")
endServer-side Variables:
Variable
What is it?
Example value
Restrictions:

Last updated
