Jump to content

Recommended Posts

Posted

This is a server log script for FiveM, which is used to log certain actions that are being made in the server.

 

Original Installation Guide


Requirements:
 

A Discord Server

FiveM FXServer

Download & Installation:

Download the files
Put the JD_logs folder in the server resource directory
Add this to your server.cfg
 

ensure JD_logs



Adding more logs:

Add the following code to your existing resource where you execude the code
 

exports.JD_logs:discord('MESSAGE_YOU_WANT_TO_POST_IN_THE_EMBED', PLAYER_ID, PLAYER_2_ID, 'DECIMAL_COLOR_CODE', 'WEBHOOK_CHANNEL'))

Create a discord channel with webhook and add this to the webhooks:
 

local webhooks = {
	all = "<DISCORD_WEBHOOK>",
	chat = "<DISCORD_WEBHOOK>",
	joins = "<DISCORD_WEBHOOK>",
	leaving = "<DISCORD_WEBHOOK>",
	deaths = "<DISCORD_WEBHOOK>",
	shooting = "<DISCORD_WEBHOOK>",
	resources = "<DISCORD_WEBHOOK>",
	<WEBHOOK_CHANNEL> = "<DISCORD_WEBHOOK>", <------
}

 

Credits goes to JokeDevil

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock