LR-Logger

LR-Logger

LR-Logger is a free Script for logging several information into Discord using Webhooks.
It comes with a little default selection of Logs, but its main purpose is to simplify logging in external scripts.
How you can access the logging Events will be explained at the end of the post.

Information

Autor: RobbGamer2_0
Price: Free
Support: LR Systems

Download

https://lr-system.tebex.io/package/lr-logger

Dependencies

screenshot-basic

How to use built in Loggers:

Enter your Discord Channel Webhook in the Brackets after the log you want in Config.Logs.

config.lua
Config = {}

Config.Server = {
    Name = "LR-System",
    Logo = "https://i.imgur.com/bvDmOoX.png"
}

Config.DisallowOnMiss = true
Config.Identifires = {
    Required = {
        'steam',
    },
    Optional = {
        'discord',
    },
}

Config.Logs = {
    ["screenshots"] = "",
    ["join"] = "",
    ["leave"] = ""
}

Config.Message = {
    ['checkingIdentifires'] = "Checking your Identifire...",
    ['missingIdentifire'] = "Identifire %s is missing. Please try again!"
}

How to use Customized

Server Event
TriggerServerEvent('logger:createLog', {
        webhook = "WEBHOOK_URL",
        title = "Event Title",
        action = "Event Action",
        color = "color of your Choice",
        players = {
            {
                id = GetPlayerServerId(PlayerId()),
                role = "The Role of the Player in that Event",
            }
        },
        info = {
            { name = "Test Data 1", value = "This is the Value of Test Data 1"},
            { name = "Test Data 2", value = "This is the Value of Test Data 2"}
        }
        takeScreenshot = true
    })

Supported Colors:

Discord Docs typedef Colors

Any questions or improvements ?

Just join my Discord Server, open a Ticket or write it in any public Chat and i will take a look at it.

Preview

Join/Leave Logs

Example Custom Log

Code is accessible No
Subscription-based No
Lines (approximately) 250 - 300
Requirements screenshot-basic
Support Yes
1 Like

why not move webhook in sever so is safe to use !

Ah yes. This is exactly what I would put in my server.

Fully escrowed discord logger with the best practices.

  1. include config.lua in fxmanifest like 3 times
  2. Webhooks on client side so I can let malicious people do whatever they want.
lua54 'yes'

escrow_ignore {
    'config.lua'
}

fx_version 'cerulean'
game 'gta5'

author 'RobbGamer2_0'
description 'Webhook Based Discord Logs'
version '1.0.0'

client_scripts {
    'client/**/*.lua',
    'config.lua'
}

server_scripts {
    'server/**/*.lua',
    'config.lua'
}

shared_script {
    'config.lua'
}

dependencies {
    'screenshot-basic'
}
dependency '/assetpacks'

btw url is in config
you have it in 3 place config.lua

client_scripts {
‘client/**/*.lua’,
‘config.lua’
}

server_scripts {
‘server/**/*.lua’,
‘config.lua’
}

shared_script {
‘config.lua’
}

Did you read the rules? Free resources must include a direct download link.

Will be fixed in the next update.

Hey, sorry, this is my first public script. I’ll try to change it and appreciate any feedback. Thank you very much. I’ll try to do it for the next update.

where is saying that there is no rule for it all rules changes

o yes what you can do is ‘share/config.lua’, share/server.lua share/client.lua

or load server/hooks.lua

1 Like

I have already fixed this problem and am currently making changes to the screenshots in the client script, but I think it would be a better idea for the first post to make the GitHub public and remove escrow in order to get more feedback.

I will get to work on this tomorrow as soon as I have time.

2022

Just because its old means that its not valid? The resource rules are from Jan 2019 so that means that they are not valid anymore?

Yes! it’s old so it’s not valid anymore. Maybe you should go read the rules before you try to enforce them. Bro’s seriously showing a screenshot from 2022 and arguing instead of checking latest rules thread.

how do the screenshots work

You can upload it as an attachment, if it’s an image it will embed it