how to reset/set NetworkVariables on NetworkManager.Singleton.shutdown

lets say that im in a game and i want to leave, i call the Network shutdown, but the NetworkVairables will still have their value. i cant just call a ServerRpc to reset them since it would do it for everyone. How do i do it?

Process the server RPC only for the client id you wish to reset the value for.

how do i do it?

With an if to compare the LocalClientId of each client to that of the target, or, more efficiently, google “ClientRpcParams”.

Something like that should do the trick

Method(ulong clientID) {
foreach (var client in NetworkManager.Singleton.ConnectedClientsIds)
{
if(client == cliendID) //do something
break;
}
}