# Ownership in RPC function change?

**URL:** <https://forums.unrealengine.com/t/ownership-in-rpc-function-change/490876>\
**Category:** C++\
**Tags:** Server, replicate, rpc, unreal-engine, UE4, question, CPP\
**Created:** [November 19, 2021, 7:02am UTC](https://forums.unrealengine.com/t/ownership-in-rpc-function-change/490876 "2021-11-19T07:02:41Z")\
**Posts on this page:** 2\
**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 19, 2021, 7:02am UTC](https://forums.unrealengine.com/t/ownership-in-rpc-function-change/490876/1 "2021-11-19T07:02:41Z")

</div>

if i run this code below on client side,

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

void Foo_Implementation(float value)
{
     _gameState->_someVariable = value; 
}

```

is that \_gameState in function on the Server Side?

and Next time when i run this code on the Server side, is that \_someVariable of \_gameState already changed?

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [November 20, 2021, 9:16pm UTC](https://forums.unrealengine.com/t/ownership-in-rpc-function-change/490876/2 "2021-11-20T21:16:55Z")

</div>

In your example you forgot to add the float value to the Foo function declaration too.

Yes the Foo\_Implementation code is run on the Server if you call Foo from an Owning Client.
