# How to know ownership in RPC function?

**URL:** <https://forums.unrealengine.com/t/how-to-know-ownership-in-rpc-function/490875>\
**Category:** C++\
**Tags:** Server, replicate, owner, unreal-engine, UE4, question, CPP\
**Created:** [November 13, 2021, 7:28am UTC](https://forums.unrealengine.com/t/how-to-know-ownership-in-rpc-function/490875 "2021-11-13T07:28:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PainGetter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PainGetter](https://forums.unrealengine.com/u/PainGetter)\
**Post date:** [November 13, 2021, 7:28am UTC](https://forums.unrealengine.com/t/how-to-know-ownership-in-rpc-function/490875/1 "2021-11-13T07:28:18Z")

</div>

if i run this code on client side

```
UFUNCTION(Server, Reliable)
void Foo();

void Foo_Implementation(int _someNumber)
{
    _gameState->_someVariable = _someNumber; 
}

```

is that \_gameState in function on server Side?

and next time, i run that function on Server side, is that value already changed?
