Fivemerr
  • Fivemerr
    • πŸ€“Welcome to Fivemerr
  • API
    • βœ…Setup
    • πŸ–ΌοΈImages
    • πŸ”ŠAudio
    • πŸŽ₯Video
    • ℹ️Logs
  • Features
    • πŸ”„DB Backups
    • πŸ”‰Media
    • πŸ“­API Tokens
    • πŸ’»Servers
    • πŸͺ’Logs
    • πŸ•ΈοΈWebhooks
  • Script Integrations
    • πŸ“Έscreenshot-basic
    • 🀳ShareX
    • ℹ️Logs
      • ℹ️fm-logs
      • ℹ️ox_logs
      • ℹ️qb-logs
    • πŸ“ΆPhone Scripts
      • πŸ“³QBCore Phone
      • πŸ“³LB Phone
      • πŸ“³Road Phone
      • πŸ“³NPWD
      • πŸ“³JP Phone
      • πŸ“³nPhone
      • πŸ“΄okokPhone
      • πŸ“³GKS Phone
      • πŸ“³YSeries Phone
      • πŸ“΅QS Phone
    • πŸ¦₯Project Sloth
      • πŸ¦₯ps-mdt
      • πŸ¦₯ps-adminmenu
      • πŸ¦₯ps-camera
    • πŸ’ͺPower Scripts
      • πŸ’ͺpower_dashcams
    • πŸ“ΉSpy Scripts
      • πŸ“Ήspy-bodycam
Powered by GitBook
On this page
  • Download
  • Requirements
  • Installation
  • Features
  • Preview
  • Custom Logging
  • Framework Support
  • Credits
  1. Script Integrations
  2. Logs

fm-logs

Stripped apart from JD_Logsv3 Discord and converted to Fivemerr API log support.

PreviousLogsNextox_logs

Last updated 19 days ago

πŸ€“ FiveM Logger by Fivemerr

A logging resource for your FiveM server that logs directly to api.

Download

Requirements

  • FXServer With at least build: 5562

Installation

  • Add your Fivemer Logs API Key on server > main.lua line 2.

  • Configure your framework or standalone on shared > config.lua line 8.

Features

  • Chat Logs

  • Join Logs

  • Spawn Logs (Based on specified framework)

  • Leave Logs

  • Damage Logs

  • Death Logs

  • Weapon Logs

  • Resource Logs

  • Explosion Logs

  • TxAdmin Logs

  • Screenshot Logs

Preview

Custom Logging

You may use fm-logs to leverage custom reporting to Fivemerr by using the following export function:

-- Example of a createLog function
exports['fm-logs']:createLog({
    LogType = "Player", -- The log type, must be defined in Config.Logs
    Message = "Player action here", -- The message of the log
    Level = "info", -- The level of the log (can be filtered on Fivemerr) (info by default)
    Resource = "script-name", -- Resource where the log is coming from (If not provided, `fm-logs` will be set by default)
    Source = 1, -- Server id for player (Required for Player Attributes to be pulled)
    Metadata = {} -- Custom attributes to be added
})

The export can be used on both server and client sides.

Framework Support

This logger does not require a framework, however, if you use QBCore or ESX, you can set these in the config to display the player's character name in the logs on Fivemerr. Setting a framework will also enable the "playerConnected" log in the spawn logs as it will listen to the player loaded event based on the framework specified.

Framework = "qb", -- "qb" | "esx" | "standalone"

If you do not use a framework, simply set this to "standalone".

Credits

ℹ️
ℹ️
Fivemerr's
GitHub
screenshot-basic
iratetech
JD_logsV3