/j-serviceLogs

A simple service log script for FiveM

Primary LanguageLua

FiveM Job Service Logs

Requirements: es_extended

Installation

  1. Extract the j-serviceLogs folder to your resources folder
  2. Rename the folder to j-serviceLogs
  3. In our server.cfg file, add the followed lines:
ensure j-serviceLogs
  1. Configure and enjoy!

Features

  • Logs for Discord
  • Clean Code
  • Easy to use
  • Easy to install
  • Easy to configure
  • Now you can set an hexadecimal color code and convert it to decimal with convertHexToDecimal function, example:
-- Path: server/main.lua (Insert into JOB_LOGS table)
---@param color: string
['example_job_name'] = { -- In your SQL `jobs` table, get the name.
    webhook = 'https://discord.com/api/webhooks/...', -- Here your webhook link
    color = convertHexToDecimal('#000'), -- Here your color code: color introduced: black.
    title = 'Fichajes de los EMS', -- Your title here
    message = 'El usuario %s ha fichado su %s', -- Recomended message format.
},

Support

If you need support, you can contact me on my Discord server.

  • All rights reserved to Jaareet
  • Hope you like it!