Skip to content

OnDestroyUI

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnDestroyUI( BasePlayer player, string elem )
{
    Puts( "OnDestroyUI works!" );
}

Location

  • CUIHelper::DestroyUi(BasePlayer player, string elem)
csharp
public static bool DestroyUi(BasePlayer player, string elem)
{
	if (player?.net != null)
	{
		Interface.CallHook("OnDestroyUI", player, elem);
		CommunityEntity.ServerInstance.ClientRPC(RpcTarget.Player("DestroyUI", player.net.connection ), elem);
		return true;
	}

	return false;
}

Released under the MIT License.