SampSharp

Setup Edit this page on GitHub

Introduction

In order to get started with SampSharp, you'll need to install a few things:

SA-MP Server

The SA-MP Server package can be downloaded from the SA-MP website. Once unzipped, open the server.cfg file with a text editor.

echo Executing Server Config...
lanmode 0
rcon_password mysecurepassword
maxplayers 50
port 7777
hostname SA-MP 0.3 Server
gamemode0 empty 1
announce 0
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English
plugins SampSharp

SampSharp Plugin

The plugin can be downloaded from the releases page on GitHub. Copy the contents of the folder in the ZIP file to your SA-MP server directory.

Visual Studio and .NET Core

Download and install Visual Studio from the Visual Studio website. The Community Edition can be downloaded for free. During the setup process make sure to mark the ".NET Core cross-platform development" workload for installation.

NuGet Repository

SampSharp hosts it own NuGet package repository which contains the framework and various other SampSharp related packages. In order to uses these packages, you have to add the repository to your package manager.

  1. In Visual Studio's toolbar click on Tools > Options...
  2. In the left menu, select NuGet Package Manager > Package Sources
  3. Click on the big +(plus) icon in the upper right corner of the window.
  4. In the Name field type SampSharp.
  5. In the Source field type http://nuget.timpotze.nl/api/v2/.
  6. Click on OK.

Packages Sources window in Visual Studio