Tutorial

How to use

local ESX = exports["es_extended"]:getSharedObject()
local xPlayer = ESX.GetPlayerFromId(source)

exports['payo_logs']:DiscordLog("webhookURL",{
    color = 16737095,
    title = "Player has joined the server",
    fields = {
        {
            ["name"]= "Character Name",
            ["value"]= xPlayer.getName(),
            ["inline"] = true
        },
        {
            ["name"]= "Steam Name",
            ["value"]= GetPlayerName(source),
            ["inline"] = true
        },
        {
            ["name"]= "Identifier",
            ["value"]= xPlayer.getIdentifier(),
            ["inline"] = false
        },
    },
})
-- By the way this code isn't working if you join the server it won't log anything ;)

Colors

  • default = 14423100,

  • red = 16711680,

  • green = 65280,

  • blue = 255,

  • black = 0,

  • orange = 16744192,

  • yellow = 16776960,

  • pink = 16761035,

  • lightgreen = 65309

  • white = 16777215,

Last updated