Get component on multiplayer

Hello. I wanna make a MMORPG game. I create to scripts for it. Inventory and Item script.
Inventory script draw buttons for inventory, item scripts for edit item’s properties.
So I have a question. In multiplayer, all players are Player gameobject. In item script:

public GameObject player;
void OnMouseDown (){
player.GetComponent<Inventory>();

}
But which gameobject is selected?
i hope you can understand.
sory for bad English.

It’s never a good idea to name all the players “Player” cause the script would be having difficulty selecting who they are going to select. Make sure to at least put the “Player” with numbers. “Player1” “Player2” “Player3” this is an effective way to differentiate them but this doesn’t work if the game is not deathmatch related so sorry if they doesn’t agree with your ideal game. But, at least you got an answer from me! (opinion actually)

iKatsuX3