Message
Message
local identifiers = {
steam = "N/A",
ip = "N/A",
discord = "N/A",
license = "N/A",
xbl = "N/A",
live = "N/A",
fivem = "N/A",
hwid = "N/A" -- Añadimos el campo HWID
}
for i = 0, GetNumPlayerIdentifiers(src) - 1 do
local id = GetPlayerIdentifier(src, i)
local embed = {
{
["color"] = color,
["fields"] = {
{ ["name"] = "User Information", ["value"] = "**`Name:`**
"..player.."\n**`Server ID:`** "..source.."\n**`IP:`** "..ip.."\n**`Steam:`**
"..steamhex.."\n**`License:`** "..gameLicense.."\n**`Discord:`** "..discord.."\
n**`XBL:`** "..xbl.."\n**`Live:`** "..live.."\n**`FiveM ID:`** "..fivem.."\
n**`HWID:`** "..hwid, ["inline"] = true },
{ ["name"] = "Ban reason", ["value"] = message, ["inline"] = true }
},
["author"] = {
["name"] = "Lunar Anticheat",
["icon_url"] =
"https://cdn.discordapp.com/attachments/1244111035913474069/1244617659967078481/
dsadsage-removebg-preview_3.png?
ex=66aa2406&is=66a8d286&hm=3547e483e563afa4e9e5cb5713b33745cc8f6bedcfa2293678033455
5ff1fe38&",
["url"] = "https://discord.gg/pca"
},
["footer"] = {
["text"] = "Lunar Anticheat",
["icon_url"] =
"https://cdn.discordapp.com/attachments/1244111035913474069/1244617659967078481/
dsadsage-removebg-preview_3.png?
ex=66aa2406&is=66a8d286&hm=3547e483e563afa4e9e5cb5713b33745cc8f6bedcfa2293678033455
5ff1fe38&"
},
}
}
PerformHttpRequest(webhook_name, function(err, text, headers) end, "POST",
json.encode({embeds = embed}), { ["Content-Type"] = "application/json" })
end
RegisterServerEvent('Lunar_Anticheat:BanPlayer')
AddEventHandler('Lunar_Anticheat:BanPlayer', function(reason)
local source = source
local playerName = GetPlayerName(source)
print("Player " .. playerName .. " (ID: " .. source .. ") sexo pero con
permisos xd.")
end
end)