Is there any good way to know the connection id of each client?

like i have 32 max connections to my server.

player1 joins his Network.player = 1

player2 joins his Network.player = 2

now player 1 leaves

player3 joins his Network.player = 3?

howcome player3 doesn’t take up player1’s slot?

Network.connections has the full list.

Ids are not reused because clients might then associate a message from a player who has left with one who later joins. It’s a feature.

keep track of it manually at OnPlayerConnected(networkPlayer) by assigning them (the networkPlayer)to a structure and giving it your own ID, then you can search the list of structs to find whatever you have associated with your player you out in that struct, the ID u gave him… ect