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

Make sure you changed the “32” to whatever u have. Like 64,128 etc

	for i=0,32 do
		if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
	end
	return nil
end

doesnt work for me

Or… better, use the GET_ACTIVE_PLAYERS native.

for _, player in pairs(GetActivePlayers()) do
   -- i dont think there is a need for NETWORK_IS_PLAYER_ACTIVE since GET_ACTIVE_PLAYERS
   -- only loops through active players, hence the name. kinda unsure about this but i'm
   -- pretty sure this would do.
   if GetPlayerPed(player) == id then
      return player
   end
   return nil
end

I have the problem when I kill a players his marked NPC and not the name of the players how to please?

I have 128 slots and it does not work

for me to. what to do?

Yes it does work. Provide information if you’re going to say something doesn’t work.

This software works for server 32 and not for server 64 or 128 for the reason that when you kill a player it does not recognize the name of the players it is NCP / Suicide and not the name of the players who kill the person

Any fix? I only added the admins, i did not mess with the other code.

SCRIPT ERROR: @logsystem/server/main.lua:51: attempt to index a nil value (global 'config')

Unable to get this to work for 64 slots [KILLS LOG - Player Killing Player] but everything else worked fine. I tried:

for _, player in pairs(GetActivePlayers()) do
– i dont think there is a need for NETWORK_IS_PLAYER_ACTIVE since GET_ACTIVE_PLAYERS
– only loops through active players, hence the name. kinda unsure about this but i’m
– pretty sure this would do.
if GetPlayerPed(player) == id then
return player
end
return nil
end

I also tried:

for i=0,64 do
if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
end
return nil
end

Any ideas?

Wondering, is this script able to support discord identifiers?

@n0thus Pull request is ready on Github for Dutch / German localisation

Are you able to get kill log working without making any changes on onesync?

where is the cl_chat.lua ?

My chat logs are not working i changed my chat but it doesn’t work (Config is already in true). Any help?

Thanks

where do we put the webhooks

Connections show up but the other categorys wont show up,

Any fix?

Is it logs admin commads with chat as well?

Hello! I just wanna ask if you can only see the logs in game and real time or can the admins check it any time?

Hey I’m getting this error can someone help, When I have more than 1 steam hex in the file it errors out and I want to give my admins access to the menu is there a fix to this