488.aspx">partial class</a> for the <strong>CarNetworkObject</strong> and you will override the <strong>AllowOwnershipChange</strong> method like so:</p>
<h3 id="allowownershipchange">AllowOwnershipChange</h3>
<pre><code class="csharp">protected override bool AllowOwnershipChange(NetworkingPlayer newOwner)
{
    // The newOwner is the NetworkingPlayer that is requesting the ownership change, you can get the current owner with just &quot;Owner&quot;
}
</code></pre>

<p>Notice that you need to return a boolea