Unet disable button from client

Hi, I’m new with unet and want to set button.interactable = false on a button for all the clients when on player clicks another button.

To make it a little less confusing. I have 2 buttons on the ui. I want that when one player clicks one of those buttons, the other one cannot be clicked by anyone.

Thanks!!

Here ya go!

if(Network.isServer) {
//PUT YOUR SERVER ONLY BUTTON HERE
}else{
//PUT YOUR CLIENT ONLY BUTTON HERE
}

Finally got to solve this issue.
I was trying to call the Cmd and RPC from the button. I added the scripts to the player object and used AssignClientAuthority on the button.

Now it works.