Photon multiplayer, getting information from photonView.owner

I’m attempting to sync weapons equipped between players, so you can see what everyone is holding, I’m really struggling, I’ve been trying to figure this out for days, this is my script for syncing and equipping weapons:

using UnityEngine;
using System.Collections;

public class InventoryManager : Photon.MonoBehaviour {

    public GameObject holder;
    public GameObject[] equippable;
    GameObject player;
    //string localequipped;
    string equipped;
    GameObject playerchanged;

    public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info) {}

	void Update() {
        if (Input.GetKeyDown(KeyCode.Alpha1)) Equip(0,photonView.owner);
        if (Input.GetKeyDown(KeyCode.Alpha2)) Equip(1,photonView.owner);
	}

    void Equip(int wepid, PhotonPlayer sender) {
        for (int i = 0; i < equippable.Length; i++)
        {
            equippable*.SetActive(false);*

}
equippable[wepid].SetActive(true);
equipped = equippable[wepid].name;
GetComponent().RPC(“EquipOther”, PhotonTargets.Others, sender);
}

[PunRPC]
void EquipOther(PhotonPlayer sender) {
Debug.Log(sender + “is changing wep”);
}

}
I’ve passed in the senders photon id/name and from there i want to get its gameobject so i can enable the weapon for all other players on the server, so that they can see the change.
but, i cant seem to find a way to get this to work, only possible way i thought would be to pass the game object through the rpc function, but photon does not support this, please help.
if my system of changing weapon or syncing it is wrong, dont fix it, please help/tell me a better or easier way to do it.
P.s im very new to networking and its hurting my brain.

Hello @timothy92
you can try this

void Equip(int wepid, PhotonPlayer sender) {
                 for (int i = 0; i < equippable.Length; i++)
                 {
                     equippable*.SetActive(false);*

}
equippable[wepid].SetActive(true);
equipped = equippable[wepid].name;
PhotonView photonView = PhotonView.Get(this);
photonView.RPC(“EquipOther”, PhotonTargets.Others,wepid );
}

[PunRPC]
void EquipOther(int wepid)
{
equippable[wepid].SetActive(true);
equipped = equippable[wepid].name;
}