Basically I’m sending a webhook however it errors with “empty url” heres my script:
local HTTP = game:GetService("HttpService")
local function SendWebhook2(Player,arrestlocationbox,armedwithbox,suspectnamebox,dobbox,summarybox,webhookurl3)
local Data = {
['embeds'] = {{
["title"] = "Arrest Log",
["description"] = "Confidential",
["fields"] = {
{name = "Suspect Name: ", value = suspectnamebox, inline = true},
{name = "Armed With: ", value = armedwithbox, inline = true},
{name = "Date of Birth: ", value = dobbox, inline = true},
{name = "Location: ", value = arrestlocationbox, inline = false},
{name = "Arrest Summary: ", value = summarybox, inline = false},
{name = "Signed: ", value = player.Name, inline = false},
},
["footer"] = {
["text"] = "Home Office Systems: " },
}
}
}
local postData = HTTP:JSONEncode(Data)
wait(0.5)
HTTP:PostAsync(webhookurl3, postData)
end
Remote6.OnServerEvent:Connect(SendWebhook2)