[Pre-Release][0.0.5] Logs system (With UI)

config = {
  debug = false,
  language = 'en',
  autoCheckVersion = true,
 
  LogDisconnect = true,
  LogConnect = true,
 
  LogChat = true,
 
  LogKills = true, -- Log when a player kill an other player.
    LogPnjKills = true, -- Log when a player has been killed by a pnj.
 
    LogEnterPoliceVehicle = true, -- Log when an player enter in a police vehicle.
    LogEnterBlackListedVehicle = true, -- Log when a player enter in a blacklisted vehicle. Blacklisted vehicles are vehicles in te "blacklistedModels" array.
    DeleteWhenEnterBlackListedVehicle = true, -- if it's on "true", when a player enter in one of blacklisted vehicles, it's going to depop.
 
  LogWhenHaveBlackListedGun = true, -- Log when a player gets a blacklisted gun.
    DeleteBlackListedGun = true, -- if it's on true, when a player gets a blacklisted gun, it's going to be removed.
 
  admins = {
    "steam:11000010bXXXXXX"
    "steam:110000103XXXXXX"
    "steam:110000136XXXXXX"
  },
 
  blacklistedModels = { -- By default, it's all the military vehicles
    GetHashKey("trailersmall2"),
    GetHashKey("apc"),
    GetHashKey("barrage"),
    GetHashKey("chernobog"),
    GetHashKey("halftrack"),
    GetHashKey("rhino"),
    GetHashKey("scarab"),
    GetHashKey("scarab2"),
    GetHashKey("scarab2"),
    GetHashKey("scarab3"),
    GetHashKey("thruster"),
    GetHashKey("khanjali")
  },
 
 
  blacklistedGuns = {
    --Get models id here : https://pastebin.com/0wwDZgkF
    --0x99B507EA,
    --0x42BF8A85,
  },
 
  openMenuKey = 207 -- PGDWN
}

It has to be :

admins = { 
"steam:11000010bXXXXXX" ,
"steam:110000103XXXXXX" ,
"steam:110000136XXXXXX" 
},

(You just need to put a “,” after each admins except the last one)

then why won’t it work for me? i’ve tried restarting the server, restarting the resource, restarting my game, etc

It seems that the ressource is working for some people but doesn’t for others, I actually don’t know why. Can you send me your configuration file, please ? :slight_smile:

This is embarassing… It was right in front of my eyes and i couldn’t see it. Thank you @n0thus . It works perfectly fine now.

The only issue that i have now is when players kill players or NPC’s , it says “PNJ/Suicide” on Kill logs.

Any luck with the png suicide issue? @n0thus

Weapons and vehicles do not work in your system
Please solve the problem as quickly as possible

This is an awesome script! Thanks for such a cool resource to use.

https://gyazo.com/dec08f00b76507c45409d0966f7b1b95 why is it no working i really need it

@n0thus nice release, thx

Missing Moneytransfer.
It seams easier to find a moneycheater

+1 for money transfer
Also maybe logs for
when someone enters a vehicle then it turns into another vehicle without them exiting.

Checks when you enter the car > Checks again when you exit
then If it doesn’t match logs the user

1 Like

menu not opening for me

1 Like

Do you know how to take off the kill messages in the corner? For my fivem server?

It’s very usefull script for my server but so much memory usage…

Can not use this in vrp? F9 I get a window with a SQL error but I can not get others to connect …

I can’t see who killed a victim.
I’m on OneSync

Clear the logs once in a while… you don’t need to keep everything

how i can use it in game? like a command

Hi there. Trying to get this to work for my server but the vehicle logs seem to be a bit temperamental. The police cars get logged just fine but as soon as someone gets into a blacklisted vehicle it breaks the vehicle logs police cars included until i log out and rejoin. i get the following error as well when getting into a blacklisted vehicle for the first time SCRIPT ERROR: @logsystem/client/vehicles.lua:47: attempt to index a nil value (global 'GcurrentCoords') Once i get this error nothing gets logged in the vehicle logs. any help would be appreciated

i love this script for everything and ive added the script to the cl_chat.lua but i also use esx_rpchat and civlife chat, adn my chat doesnt show up nor do admin commands, but everything else works fine