Skip to content

A discord logging system, written for Lost County RP by Gtakingrules#1367.

Notifications You must be signed in to change notification settings

CallumMcKinnonSnell/LCRP_Logging

Repository files navigation

LCRP Logging

A simple logging script using discord embeds, written for Lost County RP

Dependencies

  • es_extended

Usage

  • For a log action:

exports.LCRP_Logging.discord(message, sourceID, secondPlayerID, 'COLOUR', 'WEBHOOK', isAdmin)

Parameters:

  • message = The message you would like to display in the log
  • sourceID = the server ID of the player
  • secondPlayerID = The server ID of the second player - if it is an individual action, then use 0
  • Colour = This should correspond to a value in the Config.Colours list
  • Webhook = This should correspond to a value in the Config.WebHooks list
  • isAdmin = boolean, determines whether to publish the player's IP address alongside the other information

For example: exports.LCRP_Logging:discord(msg, _source, 0, 'Wash', 'Wash', false)

  • This is a log taken of my own wash action: Image of log

The messsage was generated using the following codeline:

local msg = GetPlayerName(source).. " has Just used the Money Wash. They washed £"..cash.. ", and received £"..newcash .. " they now have £"..xPlayer.getMoney()

About

A discord logging system, written for Lost County RP by Gtakingrules#1367.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages