Show / Hide Table of Contents

Getting started

This article will describe how to get started with your first Slipe Server project.

Prerequisites

  • Visual Studio (or another editor if you prefer)
  • dotnet 8.0

Creating your project

We're going to create and run our first Slipe Server project, in order to do so:

    1. Create a new c# Console Project using dotnet 8.0
    1. Install our SlipeServer.Server NuGet package
    1. Add the following code to your Program.cs:
    using System.Threading.Tasks;
    using SlipeServer.Server;
    using SlipeServer.Server.ServerBuilders;
    
    var server = MtaServer.Create(builder =>
    {
        builder.AddDefaults();
    });
    
    server.Start();
    await Task.Delay(-1);
    
    1. Run the project
    1. Go to your local server tab in your browser
    1. Connect to the server

If everything worked as intended, you are now connected to an MTA server, you will however just see a black screen. In the next article: your first logic we will add some logic to the server so you actually spawn somewhere.

  • Edit this page
In this article
Back to top Generated by DocFX