[Release] Logs system | Now with UI

Hello everyone,

This script was created to make server administration much easier. Indeed, this one trace the actions that a player is doing in .txt files and in the console.


Characteristics :

  • Fully configurable
  • Trace when a player is killing another player
  • Trace when a player is entering a police vehicle
  • Trace when a player is entering a blacklisted vehicle (configurable)
  • Logs are separated by type, so everything is written in an organized way
  • Time and steam ID are written in the logs
  • You have a menu in game
  • You can copy a line in the menu by clicking it
  • You can search all the logs of a player by searching his name or steam ID
  • Sorted from newest to oldest

Setup :

- This script is no longer downloadable. This topic can be deleted.


Tutorial :

How to add a vehicle to the blacklist ?
This is really simple, you just have to go in the “config.lua”, you will find this :


blacklistedModels = { -- By default, it's all the military vehicles
	GetHashKey("APC"),
	GetHashKey("BARRACKS"),
	GetHashKey("BARRACKS2"),
	GetHashKey("RHINO"),
	GetHashKey("CRUSADER"),
	GetHashKey("CARGOBOB"),
	GetHashKey("SAVAGE"),
	GetHashKey("TITAN"),
	GetHashKey("LAZER"),
}

So, just go on this website and search the vehicle’s model you want to balcklist (at the end of this page)
For example, fo the APC you have to find that :

Nown you just have to writte that (below the “}” ) :

	GetHashKey("NameOfTheModel"),

Preview :



8 Likes

Really nice job bro, i will try it :smiley:

1 Like

Beautiful, hat is off to you my friend.

Am i stupid or, do you say to goto a website which you didnt link.

Oh, my bad, i forgot to link to the website. It’s edited ! :wink:

And thank you all for your positive opinions ! :smiley:

1 Like

I use the N3MTV database, but when someone kills me, nothing appears in the file “killlogs.txt”

Have you got a solution?

Fix :
Now the kills are written, I just forgot one thing in a event. thanks you @DiNO for the report !

download link is not working

It’s working for me, I’m going to upload this script in another website

Same problem, nothing in “Killlogs.txt”…

new link worked thanks also does this work on fx server before i install it

Yes, it’s working on fx server ! :wink:

I check that

Fix :
The kills logs are now available !

I add my discord on this topic. For any problem, join this and report the bug. Also, the updates are available earlier into discord.

To me it does not give me any log in the cmd ?? I am using FXserver and Vrp framework ??

Logs update !

[Add] : Connection/Disconnection ara written
[Add] : Blacklisted weapons

1 Like

i wonder if you could add in what trainer they are using so we can find out whos using the dreaded troll menu

1 Like

does it log chat? (20 char lim)

Update

You now have an UI to see the logs ig but you need essentialmode.

You can copy a log line by clicking it. Logs are sorted from newest to oldest. You can also search the logs of a player by his name or his steam ID.

https://github.com/n0thus/logs

1 Like

Hello, I have this error when I launch the script :confused:

Error loading script server.lua in resource logs: server.lua:176: attempt to index a nil value (local 'file')
stack traceback:
        server.lua:176: in function 'getFileContent'
        server.lua:183: in function 'getLogs'
        server.lua:196: in main chunk
cfx> Failed to load script server.lua.

Same here! I have compair it with an other to .txt script and its looks almost similair!

Anyway, not complaining just reporting! Thanks for the release!

Cioaa