Server is not showing player's connecting with their IP's

Ok so I have been struggling with the rcon trying to show all player id’s and somehow trying to show it when player connects like for example to show Player Cody196 connected with ID 1 or whatever. But now instead it dont show anything except started resources or it starts spamming random netID’s

@cody196 Code it in LUA. The players source is their netID so if you have a player joining event on the server you can do:

print(source)