Requirements: es_extended
- Extract the
j-serviceLogs
folder to your resources folder - Rename the folder to
j-serviceLogs
- In our
server.cfg
file, add the followed lines:
ensure j-serviceLogs
- Configure and enjoy!
- 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.
},
If you need support, you can contact me on my Discord server.
- All rights reserved to Jaareet
- Hope you like it!