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:
-
- Create a new c# Console Project using dotnet 8.0
-
- 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);
- Add the following code to your
-
- Run the project
-
- Go to your local server tab in your browser
-
- 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.