# Calling Add to vieport showing on the client and server

**URL:** <https://forums.unrealengine.com/t/calling-add-to-vieport-showing-on-the-client-and-server/2192354>\
**Category:** UI\
**Tags:** unreal-engine, question\
**Created:** [December 10, 2024, 4:48am UTC](https://forums.unrealengine.com/t/calling-add-to-vieport-showing-on-the-client-and-server/2192354 "2024-12-10T04:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krubbitt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krubbitt](https://forums.unrealengine.com/u/krubbitt)\
**Post date:** [December 10, 2024, 4:48am UTC](https://forums.unrealengine.com/t/calling-add-to-vieport-showing-on-the-client-and-server/2192354/1 "2024-12-10T04:48:06Z")

</div>

Hello, im making an inventory system on C++ and i need it to be replicated, everything works fine but when i add the interactionWidget that shows a widget just saying (Press E to interact) it shows on the client and the server. If i have 3 users and run as Listen server, it only shows on the one client and the server, as when on the server it only shows on the server.

```auto
void AOccultHUD::BeginPlay()
{

	if (InteractionWidgetClass)
	{
		InteractionWidget = CreateWidget<UInteractionWidget>(GetWorld(),InteractionWidgetClass);
		InteractionWidget->AddToViewport(-1);
		InteractionWidget->SetVisibility(ESlateVisibility::Collapsed);
		
	}

	
}

```

```auto
void AOccultHUD::ShowInteractionWidget()
{
	if (InteractionWidget)
	{
		bIsMenuVisible = true;
		InteractionWidget->SetVisibility(ESlateVisibility::Visible);
		
	}
}

void AOccultHUD::HideInteractionWidget()
{

	if (InteractionWidget)
	{
		bIsMenuVisible = false;
		InteractionWidget->SetVisibility(ESlateVisibility::Collapsed);

	}else
	{
		UE_LOG(LogTemp, Warning, TEXT("InteractionWidget is null in HideInteractionWidget."));
	}

}

```

Thisi s how i call it.
